curl-library
Re: libcurl question
Date: Tue, 20 Jan 2004 21:49:11 -0500 (EST)
Hi Dan,
Well, that makes a lot of sense. Thanks for the
information. I appreciate it...
~~Nick
--- On Tue 01/20, Dan Fandrich < dan_at_coneharvesters.com > wrote:
From: Dan Fandrich [mailto: dan_at_coneharvesters.com]
To: curl-library_at_lists.sourceforge.net
Date: Tue, 20 Jan 2004 17:31:46 -0800
Subject: Re: libcurl question
On Tue, Jan 20, 2004 at 03:14:52PM -0500, Nicholas wrote:<br>> Hi All,<br>> <br>> <br>> <br>> I have a quick question regarding the first line <br>> <br>> of a HTTP POST request when using libcurl.<br>> <br>> <br>> <br>> I am using libcurl version 7.10.5 on a linux platform and <br>> <br>> right now the first line of the HTTP request is getting sent <br>> <br>> as: <br>> <br>> POST / HTTP/1.1<br>> <br>> <br>> <br>> I would like it to send the following for the first line:<br>> <br>> POST /AUTHORIZE HTTP/1.1<br>> <br>> <br>> <br>> The documentation on the curl web site about <br>> <br>> CURLOPT_HTTPHEADER says:<br>> <br>> "The first line in a request (usually containing a GET or POST) is not a header and cannot be replaced using this option. Only the lines following the request-line are headers."<br>> <br>> <br>> <br>> So does anyone know how can I change this first line?<br><br>That line is, of course, extracted from the URL. Change the URL you're<br>setting with!
the CURLOPT_URL option to include the string you want after<br>the host name, e.g. http://www.example.com/AUTHORIZE<br><br>>>> Dan<br>-- <br>http://www.MoveAnnouncer.com The web change of address service<br> Let webmasters know that your web site has moved<br><br><br>-------------------------------------------------------<br>The SF.Net email is sponsored by EclipseCon 2004<br>Premiere Conference on Open Tools Development and Integration<br>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.<br>http://www.eclipsecon.org/osdn<br><br>
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-21