Re: cURL and HTTP request header field/XML 2b
| From: | Kristopher Yates | Date: | Tue, 03 Sep 2002 21:29:57 +0000 |
| Subject: | Re: cURL and HTTP request header field/XML 2b | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115097@lists.php.net to get a copy of this message | ||
I added the header and blank line to my $outgoing_data but no luck. It was like...
<?
$outgoing_data="
CustomHeader: Test\n\n
<?xml version=\"1.0\"?>
..xml document..";
..curl exec (see prev message or email me)..
?>
Any cURL XML phreaks out there? Or someone that can tell me how to pass an HTTP header through cURL before sending my XML. I can provide code if you cant find my original post. Maybe it is the way I am exec'ing curl??? help!
thanks,
Kris
Tomasz Orzechowski wrote:
Kristopher Yates wrote on Tue, Sep 03, 2002 at 04:14:35PM -0500:Please examine this snippet and let me know what I need to add to my $outgoing_data in order to pass an http request header before the xml goes out...something like: POST http://www.blah.org/readme.php HTTP/1.0 followed by a blank line. i'm not sure I got the arguments to POST right, check the HTTP spec on w3.org or google for it. but in general this is what you need to do. the xml stuff needs to be the 'body' of the 'POST' HTTP request. HTH,