aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
AgeCommit message (Collapse)Author
2005-07-17Simplified the code within curl_easy_perform() that calls Curl_perform().Daniel Stenberg
Pointed out by Bjorn Reese.
2005-07-12Adrian Schuur added trailer support in the chunked encoding stream. TheDaniel Stenberg
trailer is then sent to the normal header callback/stream.
2005-06-22David Shaw's fix that unifies proxy string treatment so that a proxy givenDaniel Stenberg
with CURLOPT_PROXY can use a http:// prefix and user + password. The user and password fields are now also URL decoded properly. Test case 264 added to verify.
2005-05-31Todd Kulesza reported a flaw in the proxy option, since a numerical IPv6Daniel Stenberg
address was not possible to use. It is now, but requires it written RFC2732-style, within brackets - which incidently is how you enter numerical IPv6 addresses in URLs. Test case 263 added to verify.
2005-05-19additional fix for the malformed URL fix of ydayDaniel Stenberg
2005-05-18Bug report #1204435 identified a problem with malformed URLs likeDaniel Stenberg
"http://somehost?data" as it added a slash too much in the request ("GET /?data/"...). Added test case 260 to verify.
2005-05-14Some patches for (a stricter/smarter) gcc 4.0 andGisle Vanem
warnings like: 'x' may be used uninitialized in this function.
2005-05-12oops, found by bug reported in bug report #1200661Daniel Stenberg
2005-05-12typecast to fix warning on 64bit systemsDaniel Stenberg
2005-04-26Cory Nelson's work on nuking compiler warnings when building on x64 withDaniel Stenberg
VS2005.
2005-04-25Fred New reported a bug where we used Basic auth and user name and password inDaniel Stenberg
.netrc, and when following a Location: the subsequent requests didn't properly use the auth as found in the netrc file. Added test case 257 to verify my fix.
2005-04-19added typecast when converting from long to unsigned short, to prevent ↵Daniel Stenberg
compiler warning
2005-04-18Olivier reported that even though he used CURLOPT_PORT, libcurl clearly stillDaniel Stenberg
used the default port. He was right. I fixed the problem and added the test cases 521, 522 and 523 to verify the fix.
2005-04-07GnuTLS support added. There's now a "generic" SSL layer that we use all overDaniel Stenberg
internally, with code provided by sslgen.c. All SSL-layer-specific code is then written in ssluse.c (for OpenSSL) and gtls.c (for GnuTLS). As far as possible, internals should not need to know what SSL layer that is in use. Building with GnuTLS currently makes two test cases fail. TODO.gnutls contains a few known outstanding issues for the GnuTLS support. GnuTLS support is enabled with configure --with-gnutls
2005-04-04hostthre.c: destroy_thread_data() made public. CalledGisle Vanem
from url.c: Curl_disconnect().
2005-03-15Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.Dan Fandrich
2005-03-14Removed security.h since it shadows an include file mingw needs when buildingDaniel Stenberg
for SSPI support. The contents of the file has been moved into the krb4.h file.
2005-03-11Fixed some compiler warnings.Dan Fandrich
2005-03-10Christopher R. Palmer made it possible to build libcurl with theDaniel Stenberg
USE_WINDOWS_SSPI on Windows, and then libcurl will be built to use the native way to do NTLM. SSPI also allows libcurl to pass on the current user and its password in the request.
2005-03-09As reported by 'nodak sodak' we should check for a NULL pointer beforeDaniel Stenberg
referencing the proxy name pointer.
2005-02-09prevent a compiler warningDaniel Stenberg
2005-02-09FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
2005-01-30Use calloc() to save us the memset() call and terminate conn->host.nameDaniel Stenberg
properly, to avoid reading uninited variables when using file:// (valgrind)
2005-01-29conn->ip_addr MUST NOT be used on re-used connectionsDaniel Stenberg
2005-01-28KNOWN_BUGS #17 fixed. A DNS cache entry may not remain locked between twoDaniel Stenberg
curl_easy_perform() invokes. It was previously unlocked at disconnect, which could mean that it remained locked between multiple transfers. The DNS cache may not live as long as the connection cache does, as they are separate. To deal with the lack of DNS (host address) data availability in re-used connections, libcurl now keeps a copy of the IP adress as a string, to be able to show it even on subsequent requests on the same connection.
2005-01-25Ian Ford asked about support for the FTP command ACCT, and I discovered it isDaniel Stenberg
present in RFC959... so now (lib)curl supports it as well. --ftp-account and CURLOPT_FTP_ACCOUNT set the account string. (The server may ask for an account string after PASS have been sent away. The client responds with "ACCT [account string]".) Added test case 228 and 229 to verify the functionality. Updated the test FTP server to support ACCT somewhat.
2005-01-21FTP third transfer support overhaul. See CHANGES for details.Daniel Stenberg
2005-01-19Stephan Bergmann pointed out two flaws in libcurl built with HTTP disabled:Daniel Stenberg
1) the proxy environment variables are still read and used to set HTTP proxy 2) you couldn't disable http proxy with CURLOPT_PROXY (since the option was disabled)
2005-01-16Alex aka WindEagle pointed out that when doing "curl -v dictionary.com", curlDaniel Stenberg
assumed this used the DICT protocol. While guessing protocols will remain fuzzy, I've now made sure that the host names must start with "[protocol]." for them to be a valid guessable name. I also removed "https" as a prefix that indicates HTTPS, since we hardly ever see any host names using that.
2005-01-11Renamed easy.h and multi.h to easyif.h and multiif.h to make sure they don'tDaniel Stenberg
shadow our public headers with the former names.
2005-01-10Bruce Mitchener identified (bug report #1099640) the never-ending SOCKS5Daniel Stenberg
problem with the version byte and the check for bad versions. Bruce has lots of clues on this, and based on his suggestion I've now removed the check of that byte since it seems to be able to contain 1 or 5.
2005-01-10Pavel Orehov reported memory problems with the multi interface in bug reportDaniel Stenberg
#1098843. In short, a shared DNS cache was setup for a multi handle and when the shared cache was deleted before the individual easy handles, the latter cleanups caused read/writes to already freed memory.
2004-12-17Print true netrc name (.netrc/_netrc).Gisle Vanem
2004-12-16Renamed a struct member to avoid conflict with a C++ reserved word.Dan Fandrich
2004-12-14Harshal Pradhan fixed changing username/password on a persitent HTTPDaniel Stenberg
connection.
2004-12-13Added handling of CURLINFO_SSL_ENGINES;Gisle Vanem
Added Curl_SSL_engines_list(), cleanup SSL in url.c (no HAVE_OPENSSL_x etc.).
2004-12-10move the port number extraction to after the extraction of user name/password,Daniel Stenberg
as suggested by Kai Sommerfeld
2004-12-05Dan Fandrich added the --disable-cookies option to configure to buildDaniel Stenberg
libcurl without cookie support. This is mainly useful if you want to build a minimalistic libcurl with no cookies support at all. Like for embedded systems or similar.
2004-11-26I changed my mind. Remove ioctl() macro in setup.h instead.Gisle Vanem
2004-11-26Renamed urldata.h members 'ioctl*' to 'ioctrl*' due toGisle Vanem
clash with djgpp ioctl() macro in setup.h.
2004-11-25FTP improvements:Daniel Stenberg
If EPSV, EPRT or LPRT is tried and doesn't work, it will not be retried on the same server again even if a following request is made using a persistent connection. If a second request is made to a server, requesting a file from the same directory as the previous request operated on, libcurl will no longer make that long series of CWD commands just to end up on the same spot. Note that this is only for *exactly* the same dir. There is still room for improvements to optimize the CWD-sending when the dirs are only slightly different. Added test 210, 211 and 212 to verify these changes. Had to improve the test script too and added a new primitive to the test file format.
2004-11-24HTTP "auth done right". See lib/README.httpauthDaniel Stenberg
2004-11-19David Phillips' FD_SETSIZE fixDaniel Stenberg
2004-11-18Dan Fandrich fix: eliminates some pedantic CodeWarrior compiler warnings andDaniel Stenberg
errors.
2004-11-15clean up start time and t_startsingle use so that redirect_time works properlyDaniel Stenberg
2004-11-12Dan Fandrich added the --disable-crypto-auth option to configure to allowDaniel Stenberg
libcurl to build without Digest support. (I figure it should also explicitly disable Negotiate and NTLM.)
2004-11-11Fix behaviour when passing NULL to CURLOPT_POSTFIELDS and CURLOPT_HTTPPOST.Daniel Stenberg
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-14Eric Vergnaud pointed out that libcurl didn't treat ?-letters in the user nameDaniel Stenberg
and password fields properly in URLs, like ftp://us?er:pass?word@site.com/. Added test 191 to verify the fix.
2004-10-10another lame attempt to avoid the "warning: will never be executed" warningDaniel Stenberg
by gcc 3.4