curl-and-php
Re: curl and xml problem
Date: Tue, 18 Mar 2008 17:43:26 -0400
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?
Michael Horowitz
Your Computer Consultant
http://yourcomputerconsultant.com
561-394-9079
Daniel Stenberg wrote:
> On Tue, 18 Mar 2008, Michael Horowitz wrote:
>
>
>> Here is the code I am using. I am sending a string.
>>
>
>
>> curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlResult);
>>
>
> This this sends the data as a regular POST...
>
>
>> The xml shows up after it is posted as array(1) { ["<?xml_version"]=>
>> string(972) "\"1.0\"?>
>>
>
> ... and this weird splitting up the received data in "var=data" pairs is done
> by the receiving end => PHP code => stuff I know next to nothing about.
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-03-18