| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Order of appearance of header settings
From: Roberto Nibali <ratz_at_drugphish.ch>
Date: Tue, 11 Oct 2005 10:22:19 +0200
Hello,
I set the following headers in the following order in my programme (it's
1. curl_easy_setopt(curl, CURLOPT_ENCODING, "gzip,deflate");
char *std_headers[] = {
3. curl_easy_setopt(curl, CURLOPT_REFERER, "http://www.foobar.com/");
4. curl_easy_setopt(curl, CURLOPT_USERAGENT, "some_stats_stuff");
One would assume following order of appearance from the libcurl engine:
Accept-Encoding: ...
However, additionally to the fields libcurl has to set for HTTP/1.1
User-Agent: ...
Which is not at all the order I submitted my headers. What's the reason
Thanks for your help,
-- ------------------------------------------------------------- addr://Kasinostrasse 30, CH-5001 Aarau tel://++41 62 823 9355 http://www.terreactive.com fax://++41 62 823 9356 ------------------------------------------------------------- terreActive AG Wir sichern Ihren Erfolg -------------------------------------------------------------Received on 2005-10-11 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info