aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
AgeCommit message (Collapse)Author
2003-02-24Fixes to bring back the the "Expect: 100-continue" functionality. If theDaniel Stenberg
header is used, we must wait for a 100-code (or timeout), before we send the data. The timeout is merely 1000 ms at this point. We may have reason to set a longer timeout in the future.
2003-01-30typecast the argument to isspace() to an int to prevent warnings on someDaniel Stenberg
compilers
2003-01-30Fixes bug #669059. We now extract the Content-Type better and more accurate.Daniel Stenberg
2003-01-29John McGowan found a problem where the DEBUGFUNCTION was called with badDaniel Stenberg
data on uploads.
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style
2003-01-24Bertrand Demiddelaer found and fixed this memory leak.Daniel Stenberg
2003-01-21when a chunked error is noticed, store the error number in the error stringDaniel Stenberg
to enable better error-tracking
2003-01-20Markus F.X.J. Oberhumer's patch that reduces memory usage quite a bit byDaniel Stenberg
only allocating the scratch memory buffer once it is needed and not always in the handle.
2003-01-16copyright year update in the source headerDaniel Stenberg
2003-01-15no TABs in source codeDaniel Stenberg
2003-01-07Simon Liu's HTTP200ALIASES-patch!Daniel Stenberg
2002-12-18CURLE_HTTP_NOT_FOUND => CURLE_HTTP_RETURNED_ERRORDaniel Stenberg
2002-12-10The initial HTTP request can now be sent in multiple parts, as part of theDaniel Stenberg
regular transfer process. This required some new tweaks, like for example we need to be able to tell the tranfer loop to not chunky-encode uploads while we're transferring the rest of the request...
2002-12-09The fread() callback pointer and associated pointer is now stored in theDaniel Stenberg
connectdata struct instead, and is no longer modified within the 'set' struct as previously (which was a really BAAAD thing).
2002-12-05read and write as much as possible until end of data or EWOULDBLOCK beforeDaniel Stenberg
returning back to the select() loop. Consider this a test so far.
2002-11-28compareheader() was moved over to http.c and got a Curl_ prefixDaniel Stenberg
The chunked transfer upload never stopped due to a silly add before we checked for >0!
2002-11-11moved the bools in the connectdata struct into the substruct namedDaniel Stenberg
ConnectBits where the other bools already are
2002-11-11Now supports "Transfer-Encoding: chunked" for HTTP PUT operations where theDaniel Stenberg
size of the uploaded file is unknown.
2002-10-28when using checkprefix(), the first argument must be the prefix!Daniel Stenberg
2002-10-28Transfer-Encoding: needs 17 bytes passed, not 18Daniel Stenberg
2002-10-28kromJx@crosswinds.net's fix that now uses checkprefix() instead ofDaniel Stenberg
strnequal() when the third argument was strlen(first argument) anyway. This makes it less prone to errors. (Slightly edited by me)
2002-10-23bad headers can come in two kinds, we either treat everything as one bigDaniel Stenberg
badly assumed header, or we think that parts of the buffer is a bad header and the rest is treated as a normal body part
2002-10-21Nikita Schmidt's fix to debian bug report #165382. This is verified withDaniel Stenberg
the new test case 55.
2002-10-18make very sure that we return 'done' properly when a transfer is done, asDaniel Stenberg
otherwise the multi interface gets problems
2002-10-18if we found no string on the Location: line, don't try to follow itDaniel Stenberg
2002-10-17Make the COOKIESESSION work better by creating a list of cookie files filesDaniel Stenberg
when given in the curl_easy_setopt() and then parse them all on the first curl_easy_perform() call instead.
2002-10-11When we receive a "bad header" we must sure not to write down the data partDaniel Stenberg
as well, as then we write the same data twice.
2002-10-09Junk data could get inserted when saving/getting HTTP headers, as discoveredDaniel Stenberg
by Craig Davison. Now we deal with the 'nread' variable correctly between each header line.
2002-10-07Move the URL concat code to Curl_follow(), and added a proto for thatDaniel Stenberg
function. For Location: following.
2002-10-04as Ralph Mitchell pointed out, the Location: following code needs someDaniel Stenberg
basic ./ and ../ strip-off understanding, and this change introduces with. test cases 49 - 52 test this.
2002-09-23spell fix commentDaniel Stenberg
2002-09-16a follow-up fix to the previous fix for HTTP servers that don't reply *any*Daniel Stenberg
headers at all
2002-09-13better deal with HTTP(S) servers that respond with no headers at all, testDaniel Stenberg
case 306 added to verify that we do right
2002-09-09remove redundant commentDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-09-02James Gallagher's Content-Encoding workDaniel Stenberg
2002-08-29remove the data and conn fields from the Curl_transfer_keeper struct, theyDaniel Stenberg
weren't used anyway and mostly caused confusion
2002-08-08Markus F.X.J. Oberhumer's CURLOPT_NOSIGNAL patchDaniel Stenberg
2002-08-05Make SessionHandle keep record if it is used with the multi interface orDaniel Stenberg
the easy interface, it CANNOT be used by a mixture.
2002-07-29fixed the Curl_cookie_add() invoke to not assume a space after the colonDaniel Stenberg
2002-06-15CURLOPT_BUFFERSIZE allows an application to set a prefered buffer sizeDaniel Stenberg
for receiving data from the network. It is meant as a hint, not as a forced limit.
2002-06-12Moved the secondarysocket cleanup. The 'conn' struct may have been clearedDaniel Stenberg
already at that other place.
2002-06-10Gautam Mani found a socket descriptor leak that happened when FTP transfersDaniel Stenberg
failed and you reinvoked curl_easy_perform().
2002-05-28Adjusted to make curl_multi_perform() work properly even whenDaniel Stenberg
curl_multi_fdset() is not used.
2002-05-05Better support for being used with the multi interface without the *fd_set()Daniel Stenberg
and proper select()ing have been made.
2002-05-03made the DEBUGFUNCTION get called properly on a few more places, especiallyDaniel Stenberg
for DATA_IN and DATA_OUT.
2002-05-02use and set the fd_set pointers instead of the actual values, as then weDaniel Stenberg
work properly with the multi interface when the user has provided the fd_sets!
2002-05-02Hanno Kranzhoff noticed we didn't properly reset the download/upload countersDaniel Stenberg
before transfers, when doing multiple ones on the same handle.
2002-04-17Dirk Manske's fix for HTTP response code 301, that now behaves more likeDaniel Stenberg
browsers do. Which thus *breaks* the RFC 2616...
2002-04-16Dirk Manske brought the patch that introduces two new CURLINFO_* values:Daniel Stenberg
CURLINFO_REDIRECT_TIME and CURLINFO_REDIRECT_COUNT.