cURL / Mailing Lists / curl-and-php / Single Mail


RE: curl and xml problem

From: YupLounge website analyse en optimalisatie <>
Date: Wed, 19 Mar 2008 03:13:16 +0100

You send Post data as an string, but receive it as an array
Sending: 'POSTVARS',

Receiving (view it with print_r($_POST))
Echo $_POST['listID']; //shows 29
Echo $_POST['request']; //shows suba

Hope it helps.


-----Oorspronkelijk bericht-----
[] Namens Michael Horowitz
Verzonden: dinsdag 18 maart 2008 23:15
Aan: curl with PHP
Onderwerp: Re: curl and xml problem

The reason I thought here is that I am using curl with php. Generally
when I do regular html posts they com out as an array from a form.
Never worked with curl before but it seems its primarily works in this
type of instance as a surrogate for a form. However I wanted to see if
people did anything special with regards to xml.

Michael Horowitz
Your Computer Consultant

Daniel Stenberg wrote:
> On Tue, 18 Mar 2008, Michael Horowitz wrote:
>> When people normally post xml data with curl how does it come out. Is
>> the normal method for it to look like an array or a string?
> That's normally not our concern. curl and libcurl send POSTs, the
> end is not (lib)curl stuff and thus we don't tend to talk about it here...
> In my own scripts I always receive posted content the way I think is most
> suitable for the particular script/site I'm writing.
> I suppose you should ask in a more generic PHP forum on how people in
> receive their POSTs.
> --
> Commercial curl and libcurl Technical Support:
> _______________________________________________

Received on 2008-03-19