aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
AgeCommit message (Collapse)Author
2007-01-25Fixed a dangling pointer problem that prevented the http_proxy environmentDan Fandrich
variable from being properly used in many cases (and caused test case 63 to fail).
2007-01-16- Armel Asselin improved libcurl to behave a lot better when an easy handleDaniel Stenberg
doing an FTP transfer is removed from a multi handle before completion. The fix also fixed the "alive counter" to be correct on "premature removal" for all protocols.
2007-01-14- David McCreedy provided libcurl changes for doing HTTP communication onDaniel Stenberg
non-ASCII platforms. It does add some complexity, most notably with more #ifdefs, but I want to see this supported added and I can't see how we can add it without the extra stuff added.
2007-01-05- Linus Nielsen Feltzing introduced the --ftp-ssl-ccc command line option toDaniel Stenberg
curl that uses the new CURLOPT_FTP_SSL_CCC option in libcurl. If enabled, it will make libcurl shutdown SSL/TLS after the authentication is done on a FTP-SSL operation.
2006-12-22- Robert Foreman provided a prime example snippet showing how libcurl wouldDaniel Stenberg
get confused and not acknowledge the 'no_proxy' variable properly once it had used the proxy and you re-used the same easy handle. I made sure the proxy name is properly stored in the connect struct rather than the sessionhandle/easy struct.
2006-12-22When setting a proxy with environment variables and (for example) runningDaniel Stenberg
'curl [URL]' with a URL without a protocol prefix, curl would not send a correct request as it failed to add the protocol prefix.
2006-12-21Robson Braga Araujo reported bug #1618359Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1618359) and subsequently provided a patch for it: when downloading 2 zero byte files in a row, curl 7.16.0 enters an infinite loop, while curl 7.16.1-20061218 does one additional unnecessary request. Fix: During the "Major overhaul introducing http pipelining support and shared connection cache within the multi handle." change, headerbytecount was moved to live in the Curl_transfer_keeper structure. But that structure is reset in the Transfer method, losing the information that we had about the header size. This patch moves it back to the connectdata struct.
2006-12-11Alexey Simak found out that when doing FTP with the multi interface andDaniel Stenberg
something went wrong like it got a bad response code back from the server, libcurl would leak memory. Added test case 538 to verify the fix. I also noted that the connection would get cached in that case, which doesn't make sense since it cannot be re-use when the authentication has failed. I fixed that issue too at the same time, and also that the path would be "remembered" in vain for cases where the connection was about to get closed.
2006-12-05removed the final traces of the closepolicy optionDaniel Stenberg
2006-12-05Jared Lundell filed bug report #1604956Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1604956) which identified setting CURLOPT_MAXCONNECTS to zero caused libcurl to SIGSEGV. Starting now, libcurl will always internally use no less than 1 entry in the connection cache.
2006-12-05CURLOPT_FORBID_REUSE works again with a cleaned up order of doing things inDaniel Stenberg
Curl_done()
2006-11-25Make sure RETSIGTYPE is properly definedYang Tse
2006-11-24James Housley did lots of work and introduced SFTP downloads.Daniel Stenberg
2006-11-09Dmitriy Sergeyev found a SIGSEGV with his test04.c example posted on 7 NovDaniel Stenberg
2006. It turned out we wrongly assumed that the connection cache was present when tearing down a connection.
2006-11-07Olaf fixed a leftover problem with the CONNECT fix of his that would leave aDaniel Stenberg
wrong error message in the error message buffer.
2006-11-06compiler warning fixYang Tse
2006-11-03Olaf Stueben provided a patch that I edited slightly. It fixes the notoriousDaniel Stenberg
KNOWN_BUGS #25, which happens when a proxy closes the connection when libcurl has sent CONNECT, as part of an authentication negotiation. Starting now, libcurl will re-connect accordingly and continue the authentication as it should.
2006-11-02James Housley brought support for SCP transfersDaniel Stenberg
2006-10-29Make more human readable and maintainable previousYang Tse
compiler warning fix since it was Ok and actually avoids the targeted compiler warning.
2006-10-27Compiler warning fix.Yang Tse
Assigning the const value zero to a pointer to function results in a null pointer value assignment to the function pointer. Assignment of any nonzero value is what should result in a implementation compiler dependent result. Since what we want to do here is the first case, this should not trigger compiler warnings related with conversions from 'pointer to data' to 'pointer to function'. Our autobuild test suite will judge.
2006-10-27Do an explicit typecast of data pointers to function pointersYang Tse
to avoid picky compiler warnings, since this is what we want!
2006-10-26Fix Curl_open() not reporting failure when allocation of theYang Tse
buffer used to store headers in the SessionHandle failed.
2006-10-24other pipelining fixes by Ravi Pratap, that now makes pipelines get used betterDaniel Stenberg
2006-10-23the check in ConnectionExists() for not re-using a non-resolved connection nowDaniel Stenberg
applies for asynch name resolves in general and not only ares
2006-10-23Ravi Pratap provided a major update with pipelining fixes. We also no longerDaniel Stenberg
re-use connections (for pipelining) before the name resolving is done.
2006-10-20When a resolve is made on a pipelined connection we need to detect it properlyDaniel Stenberg
(when the resoling isn't completede yet) and not confuse it with a simple connection re-use (non-pipelined).
2006-10-19Builds using synchronous name resolver dislike marking the connection as async.Yang Tse
2006-10-18When a connection is re-used, it can be flagged for re-use before the nameDaniel Stenberg
resolving is completed so we must make sure to survive it and mark the connection as async (ie not yet connected completely).
2006-10-18cut out matching host names starting with telnet or ftps, since they hardlyDaniel Stenberg
ever actually are used
2006-10-17Fixed compile error in HAVE_SIGACTION case.Dan Fandrich
2006-10-17Avoid typecasting a signed char to an int when using is*() functions, as thatDaniel Stenberg
could very well cause a negate number get passed in and thus cause reading outside of the array usually used for this purpose. We avoid this by using the uppercase macro versions introduced just now that does some extra crazy typecasts to avoid byte codes > 127 to cause negative int values.
2006-10-17TypoYang Tse
2006-10-17fix the name resolve abort timeout calculation (when signals are used)Daniel Stenberg
2006-10-15Replace ";;" with ";".Gisle Vanem
2006-10-11Remove redundant __CYGWIN__ symbol checkYang Tse
2006-10-09minor indent fixDaniel Stenberg
2006-10-09Bogdan Nicula's second test case (posted Sun, 08 Oct 2006) converted to testDaniel Stenberg
case 535 and it now runs fine. Again a problem with the pipelining code not taking all possible (error) conditions into account.
2006-09-30Support for FTP third party transfers is now droppedDaniel Stenberg
2006-09-28Reported in #1561470 (http://curl.haxx.se/bug/view.cgi?id=1561470), libcurlDaniel Stenberg
would crash if a bad function sequence was used when shutting down after using the multi interface (i.e using easy_cleanup after multi_cleanup) so precautions have been added to make sure it doesn't any more - test case 529 was added to verify.
2006-09-25Compiler warning fixYang Tse
2006-09-23Dmitriy Sergeyev provided a patch that made the SOCKS[45] code work better asDaniel Stenberg
it now will read the full data sent from servers. The SOCKS-related code was also moved to the new lib/socks.c source file.
2006-09-20Armel Asselin fixed problems when you gave a proxy URL with user name andDaniel Stenberg
empty password or no password at all. Test case 278 and 279 were added to verify.
2006-09-20Michael Wallner's test program again help me track down a problem. This timeDaniel Stenberg
it basically was that we didn't remove the current connection from the pipe list when following a redirect. Also in this commit: several cases of additional debug code for debug builds helping to check and track down some signs of run-time trouble.
2006-09-16Resize the connection cache upwards when adding more handles than whatDaniel Stenberg
currently fits in the cache, to make the cache work better especially for pipelining cases but also for "mere" (persistent) connection re-use.
2006-09-15file-local function should be static and not use Curl_ prefix!Daniel Stenberg
Curl_signalPipeClose is now signalPipeClose().
2006-09-13Compiler warning fixYang Tse
2006-09-12Compiler warning fixYang Tse
2006-09-11If the current connection doesn't fit to get added to the connection cache,Daniel Stenberg
we certainly MUST NOT kill an active connection... Problem tracked down thanks to Michael Wallner's excellent test program.
2006-09-11- Fixed my breakage from earlier today so that doing curl_easy_cleanup() on aDaniel Stenberg
handle that is part of a multi handle first removes the handle from the stack. - Added CURLOPT_SSL_SESSIONID_CACHE and --no-sessionid to disable SSL session-ID re-use on demand since there obviously are broken servers out there that misbehave with session-IDs used.
2006-09-11stupid mistake rectified by Jeff PohlmeyerDaniel Stenberg