aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
AgeCommit message (Collapse)Author
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
2004-10-07use tld_strerror() only if previously detected, since otherwise we can'tDaniel Stenberg
work with libidn < 0.5.6
2004-10-06Fixed tld_check_name(). idna_to_unicode_lzlz() should never fail,Gisle Vanem
but return FALSE if 'uc_name == NULL' just in case.
2004-10-06USE_LIBIDN: Added Top-level-domain (TLD) check for host->name.Gisle Vanem
Only print a warning if check fails.
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-10-05minor edit to re-use a variable and to hopefully avoid a (moot) warningDaniel Stenberg
about code that won't be reached
2004-10-04Made the dns entry remain locked while a connection to the host remains toDaniel Stenberg
allow verbose output during this period. Bertrand Demiddelaer reported and helped fixing.
2004-10-02Gisle Vanem provided code that displays an error message when the (libidnDaniel Stenberg
based) IDN conversion fails. This is really due to a missing suitable function in the libidn API that I hope we can remove once libidn gets a function like this.
2004-09-28Only active the engine code if ssl is enabled. This is how the actual engineDaniel Stenberg
member in the struct is used.
2004-09-25allow setting CURLOPT_SSLENGINE to NULL even if no SSL engine is supportedDaniel Stenberg
2004-09-16Added CURLOPT_FTPSSLAUTHDaniel Stenberg
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-16allow a custom "Accept-Encoding:" header override the internally set oneDaniel Stenberg
that gets set with CURLOPT_ENCODING
2004-08-10Ok, setting CURLOPT_POST to 0 will now convert the request to a GET (thisDaniel Stenberg
remains undocumented as this is not the way we recommend)
2004-07-29prevent all the sig and alarm stuff when using aresDaniel Stenberg
2004-07-28Bertrand Demiddelaer fixed the host name to get setup properly even whenDaniel Stenberg
a connection is re-used, when a proxy is in use.
2004-07-10ifdef keep_sigact since its only used when SIGALRM is defined.Gunter Knauf
2004-07-04explicit typecasts when converting from long to int to avoid warningsDaniel Stenberg
2004-07-04made 'connectindex' a long variable to prevent compiler warnings whenDaniel Stenberg
implicitly converting it to int
2004-07-01variable type cleanup to fix picky compiler warningsDaniel Stenberg