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

curl-and-php

RE: curl and xml problem

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

http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html

You send Post data as an string, but receive it as an array
Sending: 'POSTVARS',
'listID=29&request=suba&SubscribeSubmit=Subscribe&EmailAddress=')

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

Hope it helps.

Willem

-----Oorspronkelijk bericht-----
Van: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] 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
http://yourcomputerconsultant.com
561-394-9079

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
receiving
> 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
general
> receive their POSTs.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
_______________________________________________
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-19