- May 28, 2012
-
-
Steve Holme authored
Changed the order of the state machine to match the order of actual events. Reworked some comments and function parameter positioning that I missed the other day.
-
-
- May 27, 2012
-
-
Daniel Stenberg authored
Since it isn't a feature supported by curl-config we can't compare that with the --version output
-
Daniel Stenberg authored
-
Steve Holme authored
Additionally corrected another RFC link that I missed yesterday.
-
Steve Holme authored
Added support for detecting the supported SASL authentication mechanisms via the AUTH command. There are two ways of detecting them, either by using the AUTH command, that will return -ERR if not supported or by using the CAPA command which will return SASL and the list of mechanisms if supported, not include SASL if SASL authentication is not supported or -ERR if the CAPA command is not supported. As such it seems simpler to use the AUTH command and fallback to normal clear text authentication if the the command is not supported. Additionally updated the test cases to return -ERR when the AUTH command is encountered. Additional test cases will be added when support for the individual authentication mechanisms is added.
-
Daniel Stenberg authored
-
Steve Holme authored
Moved EOB definition into header file. Switched the logic around in pop3_endofresp() to allow for the introduction of auth-mechanism detection. Repositioned second and third function variables where they will fit within the 78 character line limit. Tidied up some comments.
-
Guenter Knauf authored
-
Guenter Knauf authored
-
Guenter Knauf authored
-
- May 26, 2012
-
-
Daniel Stenberg authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
Metalink file contains several hash types of checksums, such as md5, sha-1, sha-256, etc. To deal with these checksums, I created abstraction layer based on lib/curl_md5.h and lib/md5.c. Basically, they are almost the same but I changed the code so that it is not hash type dependent. Currently, GNUTLS(nettle or gcrypt) and OpenSSL functions are supported. Checksum checking is done by reopening download file. If there is an I/O error, the current implementation just prints error message and does not try next resource. In this patch, the supported hash types are: md5, sha-1 and sha-256.
-
Tatsuhiro Tsujikawa authored
Filenames contained in Metalink file can include directory information. Filenames are unique in Metalink file, taking into account the directory information. So we need to create the directory hierarchy. Curl has --create-dirs option, but we create directory hierarchy for Metalink downloads regardless of the option value. This patch also put metalink int variable outside of HAVE_LIBMETALINK guard. This reduces the number of #ifdefs.
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Anthony Bryan authored
-
Anthony Bryan authored
-
Anthony Bryan authored
-
Anthony Bryan authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
Parse downloaded Metalink file and add downloads described there. Fixed compile error without metalink support.
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
Don't update config->metalinkfile_last in operate(). Use local variable to point to the current metalinkfile.
-
Tatsuhiro Tsujikawa authored
Print message if --metalink is used while metalink support is not enabled. Migrated Metalink support in tool_operate.c and removed operatemetalink().
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
This change adds experimental Metalink support to curl. To enable Metalink support, run configure with --with-libmetalink. To feed Metalink file to curl, use --metalink option like this: $ curl -O --metalink foo.metalink We use libmetalink to parse Metalink files.
-
Steve Holme authored
-
Steve Holme authored
Updated various references of real domain names to example.com as per RFC-2606.
-
Steve Holme authored
Setting bit 2 for this value was documented as having a constant value defined as CURL_REDIR_POST_303 yet referenced a 302 request. Additionally corrected the meaning of CURL_REDIR_POST_ALL for all three bits and fixed problems with the bolding of keywords in this section.
-
Steve Holme authored
Standardised how RFCs are referenced so that the website may autolink to the correct documentation on ietf.org. Additionally removed the one link to RFC3986 on curl.haxx.se.
-
- May 25, 2012
-
-
Yang Tse authored
-
Tatsuhiro Tsujikawa authored
To achieve this, first new structure HeaderData is defined to hold necessary data to perform header-related work. Then tool_header_cb now receives HeaderData pointer as userdata. All header-related work (currently, dumping header and Content-Disposition inspection) are done in this callback function. HeaderData.outs->config is used to determine whether each work is done. Unit tests were also updated because after this change, curl code always sets CURLOPT_HEADERFUNCTION and CURLOPT_HEADERDATA. Tested with -O -J -D, -O -J -i and -O -J -D -i and all worked fine.
-
Steve Holme authored
-