- May 26, 2012
-
-
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
-
Steve Holme authored
Move the SMTP_AUTH constants into a separate header file in preparation for adding SASL based authentication to POP3 as the two protocols will need to share them.
-
Kamil Dudka authored
-
- May 24, 2012
-
-
Steve Holme authored
-
Steve Holme authored
Removed DIGEST-MD5 from Section 9.1 Other authentication mechanisms as the feature was added to SMTP in 7.26.0. Also corrected small spelling mistake.
-
Daniel Stenberg authored
-
Daniel Stenberg authored
Just before 7.26.0 is about to ship
-
- May 22, 2012
-
-
Steve Holme authored
Due to the result code being reset to CURLE_OK when smtp_dophase_done() was called, postdata would incorrectly be sent to the server when the MAIL FROM or RCPT command was rejected. As such, libcurl would return the wrong result code from performing the operation and additionally set CURLINFO_RESPONSE_CODE to be that returned by the postdata command. Bug: http://curl.haxx.se/mail/lib-2012-05/0108.html Reported by: Gokhan Sengun
-
Steve Holme authored
-
Tatsuhiro Tsujikawa authored
In nettle/md5.h, md5_init and md5_update are defined as macros to nettle_md5_init and nettle_md5_update respectively. This causes error when using MD5_params.md5_init and md5_update. This patch renames these members as md5_init_func and md5_update_func to avoid name conflict. For completeness, MD5_params.md5_final was also renamed as md5_final_func. The changes in curl_ntlm_core.c is conversion error and fixed by casting to proper type.
-
Daniel Stenberg authored
-
Jan Ehrhardt authored
The existing check was wrong so IPv6 support would never be enabled
-
Daniel Stenberg authored
-
Daniel Stenberg authored
And mention that this will become 7.26.0
-
Guenter Knauf authored
-
- May 20, 2012
-
-
Daniel Stenberg authored
The curl-config command must be used twice in the single command line to work properly in some environments. Bug: http://curl.haxx.se/bug/view.cgi?id=3528241 Reported by: Julian Taylor
-