curl-and-php
requests with bodies
Date: Sun, 07 Jul 2002 19:24:24 -0400
my question is this: Is it possible to use Curl to send requests (propfind
requests in my case) that include bodies? Basically, I would like to send
some xml in the body of a request, and I'm curious if it is possible with
Curl. The code in Perl looks like:
use LWP::UserAgent;
$self->{ua} = new RequestAgent;
$self->{ua}->cookie_jar(new HTTP::Cookies);
$self->{ua}->set_user($self->{user}, $self->{passwd});
my $req = new HTTP::Request(PROPFIND => $self->{server});
$req->content_type("text/xml");
$req->content($findinitfolders); //here is the line i'm trying to emulate
I don't write Perl, I'm trying to translate this code into PHP using Curl,
and that's where I stumbled. Thanks for any help.
Peace
Bill Mill
juegajedrez_at_hotmail.com
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
We have stuff for geeks like you.
http://thinkgeek.com/sf
Received on 2002-07-08