aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
AgeCommit message (Collapse)Author
2004-09-10- Bug report #1025986. When following a Location: with a custom Host: headerDaniel Stenberg
replacement, curl only replaced the Host: header on the initial request and didn't replace it on the following ones. This resulted in requests with two Host: headers. Now, curl checks if the location is on the same host as the initial request and then continues to replace the Host: header. And when it moves to another host, it doesn't replace the Host: header but it also doesn't make the second Host: header get used in the request. This change is verified by the two new test cases 184 and 185.
2004-08-23Roman Koifman pointed out that libcurl send Expect: 100-continue on POSTs andDaniel Stenberg
PUTs even when told to use HTTP 1.0, which is not correct.
2004-08-16allow a custom "Accept-Encoding:" header override the internally set oneDaniel Stenberg
that gets set with CURLOPT_ENCODING
2004-08-16Roland Krikava's cookies over proxy fix.Daniel Stenberg
2004-07-28Fixes Brian Akins' reported problems with duplicate Host: headers on re-usedDaniel Stenberg
connections.
2004-07-01typecast to prevent picky compiler warningDaniel Stenberg
2004-07-01spellfixed commentsDaniel Stenberg
2004-06-24use snprintf() to be on the safe sideDaniel Stenberg
2004-06-19When doing auth negotiations or authprobing, we only consider HTTP codeDaniel Stenberg
<300 to be good.
2004-06-18With David Byron's test server I could repeat his problem and make sure thatDaniel Stenberg
POSTing over HTTPS:// with NTLM works fine now. There was a general problem with multi-pass authentication with non-GET operations with CONNECT.
2004-06-15Fix the auth code to enable us to i.e set DIGEST and then find out that theDaniel Stenberg
server doesn't require any auth at all and then we just continue nicely. We now have an extra bit in the connection struct named 'authprobe' that is TRUE when doing pure "HTTP authentication probing".
2004-06-13moved default: in a switch case to prevent compiler warning that 'request'Daniel Stenberg
might be used uninitialized
2004-06-03updated a commentDaniel Stenberg
2004-06-03Alexander Krasnostavsky's FTP third party transfer (proxy) supportDaniel Stenberg
2004-05-26Added a new 'bit' in the connect struct named 'tunnel_proxy' that is setDaniel Stenberg
if a connection is tunneled through a proxy. A tunnel is done with CONNECT, either when using HTTPS or FTPS, or if explicitly enabled by the app.
2004-05-24Robert D. Young reported that CURLOPT_COOKIEFILE and CURLOPT_COOKIE couldDaniel Stenberg
not be used both in one request. Fixed it and added test case 172 to verify.
2004-05-12Curl_done() and the protocol-specific conn->curl_done() functions now allDaniel Stenberg
take a CURLcode as a second argument, that is non-zero when Curl_done() is called after an error was returned from Curl_do() (or similar).
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-05-10Moved the fetching of the list of matching cookies to make it easier to freeDaniel Stenberg
that list in case something goes wrong in the function and we must bail out. Courtesy of the torture testing.
2004-05-10typoDaniel Stenberg
2004-05-10better detection for when add_buffer() returns failure, and return when thatDaniel Stenberg
happens
2004-05-05initiate variables properly to default to no auth for server and proxyDaniel Stenberg
2004-05-04bail out when an add_buffer() function returns failureDaniel Stenberg
2004-05-04check malloc() return codeDaniel Stenberg
2004-05-04General HTTP authentication cleanup and fixesDaniel Stenberg
2004-04-29fixed the host/proxy name issue when re-using a connection and made IDN namesDaniel Stenberg
work when using proxy by converting the IDN-name to the ACE-encoded version before the request-URL is passed to the proxy.
2004-04-27Made host name and proxy name get stored in a 'struct hostname' and setDaniel Stenberg
all things up to work with encoded host names internally, as well as keeping 'display names' to show in debug messages. IDN resolves work for me now using ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to do right.
2004-04-26IDN adjustments and host cleanups by GisleDaniel Stenberg
2004-04-23Replaced Curl_FormReadOneLine with Curl_formpostheader as that is the only useDaniel Stenberg
for it. It saves one extra copy of the header. I also added comments for several functions in formdata.c
2004-04-22missing braceDaniel Stenberg
2004-04-22- David Byron found and fixed a small bug with the --fail and authenticationDaniel Stenberg
stuff added a few weeks ago. Turns out that if you specify --proxy-ntlm and communicate with a proxy that requires basic authentication, the proxy properly returns a 407, but the failure detection code doesn't realize it should give up, so curl returns with exit code 0. Test case 162 verifies this.
2004-04-22Added commentsDaniel Stenberg
2004-04-20Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed-Daniel Stenberg
length limit of the hostname part of the URL.
2004-04-13remove an long time #defined struct member and use the actual "real" nameDaniel Stenberg
instead to make it easier to find/read
2004-04-07getting only a 100 Continue response and nothing else, when talking HTTP,Daniel Stenberg
is now treated as an error by libcurl
2004-04-06New authentication code added, particularly noticable when doing POST or PUTDaniel Stenberg
with Digest or NTLM. libcurl will now use HEAD to negotiate the authentication and when done perform the requested POST.
2004-03-30adjusted to the new dns cache function to hide more hostip internalsDaniel Stenberg
2004-03-30if 0'ed out a code section that uses __FUNCTION__ etc, used for debuggingDaniel Stenberg
the new "fail with auth" code
2004-03-30David Byron made CURLOPT_FAILONERROR work with authentications such as NTLMDaniel Stenberg
or Digest.
2004-03-14fix signed and unsigned warningsDaniel Stenberg
2004-03-13postsize is off_t now, so we typecase it to int before doing normal printfDaniel Stenberg
with it (knowing it won't be larger than what fits in an int)
2004-03-13the postsize is an off_t so use the proper printf format to output theDaniel Stenberg
content-length when doing multipart posts
2004-03-12more variable type fixing for the huge postsDaniel Stenberg
2004-03-12more variable type fixes for the large POST supportDaniel Stenberg
2004-03-12Made the 'postsize' variable an off_t type to be able to hold large fileDaniel Stenberg
sizes if desired
2004-03-10Use more curl_off_t variables when doing the progress meter calculations andDaniel Stenberg
argument passing and try to convert to double only when providing data to the external world.
2004-03-10curl_socket_t mistakes cleanupDaniel Stenberg
2004-03-10keep the number of bytes read in a size_t variableDaniel Stenberg
2004-03-09Use curl_socket_t instead of int for holding sockets. The typedefs andDaniel Stenberg
defines are in setup.h.
2004-03-09explicit typecast to visualize that we really want the result of theDaniel Stenberg
operation as a size_t