1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 21:15:08 -05:00
Commit Graph

1725 Commits

Author SHA1 Message Date
Daniel Stenberg
44031f32a1 added one assert and a few comments describing how the auth stuff works 2004-01-09 14:03:06 +00:00
Daniel Stenberg
7beac70644 Dominick Meglio updated the win description since we fixed the gettimeofday
name issue
2004-01-09 07:45:47 +00:00
Daniel Stenberg
053f6c85ef updated year in the copyright string 2004-01-07 09:19:33 +00:00
Daniel Stenberg
292ef5fabb Dan Fandrich's zlib fix 2004-01-05 22:54:45 +00:00
Daniel Stenberg
9363d94f9b new files for the large file support number parsing 2004-01-05 22:39:46 +00:00
Daniel Stenberg
b60e0fa97e David J Meyer's large file support. 2004-01-05 22:29:29 +00:00
Daniel Stenberg
a0edfb90c2 make our private version of gettimeofday() static 2004-01-04 12:10:14 +00:00
Daniel Stenberg
93a8572928 white space and copyright year changes 2004-01-04 12:09:52 +00:00
Daniel Stenberg
591fe66f18 Dominick Meglio's description how to build ares for libcurl on win32 2004-01-04 12:00:11 +00:00
Daniel Stenberg
84b3c3b569 Make setopt() support CURLOPT_IPRESOLVE... 2003-12-19 08:10:09 +00:00
Daniel Stenberg
4223f602ed djgpp fixes by Gisle Vanem 2003-12-19 08:03:35 +00:00
Daniel Stenberg
8146d46386 Gisle Vanem's minor fixes 2003-12-19 08:03:15 +00:00
Daniel Stenberg
6c6e5522cb redirect from a bad url such as "www.com?moo=foo" to an absolute path didn't
work, as reported by John McGowan
2003-12-18 09:19:10 +00:00
Daniel Stenberg
aff9a817b4 David Byron's fix to make libcurl build fine with both .NET and VC6 version
of MSVC
2003-12-18 08:56:20 +00:00
Daniel Stenberg
23a6041698 use the curlassert() instead of custom checks 2003-12-16 14:08:53 +00:00
Daniel Stenberg
3788f25eac added a library-wide interface for doing dns cache pruning, and no longer
make the pruning at each name lookup, only in Curl_done().
2003-12-15 17:33:49 +00:00
Daniel Stenberg
cfe53768dd if Curl_hash_add() returns NULL, we shall not free the addrinfo field as that
is made in the hash function in the case of failure (using the already setup
'dtor' function).
2003-12-15 15:22:10 +00:00
Daniel Stenberg
947e656367 make sure that hash_add() has no allocated resources left in case it
returns NULL
2003-12-15 15:21:13 +00:00
Daniel Stenberg
50e7545118 Giuseppe Attardi fixed a really tricky bug 2003-12-15 14:48:37 +00:00
Daniel Stenberg
a025425d06 use the CORRECT file name! ;-) 2003-12-11 07:27:13 +00:00
Daniel Stenberg
8f0abd31c5 Use Curl_transfer() properly. Fixes the bug Gisle Vanem found! 2003-12-10 15:27:59 +00:00
Daniel Stenberg
a13f85fb33 assert that we get a good index to Curl_transfer() 2003-12-10 15:27:27 +00:00
Daniel Stenberg
3b048880ad we now have a 'curlassert' function to use 2003-12-10 15:27:06 +00:00
Daniel Stenberg
9bc97b2d3c updated with the new configure option usage 2003-12-10 14:16:56 +00:00
Daniel Stenberg
68c508976f added the new amiga files to the dist 2003-12-10 13:56:13 +00:00
Daniel Stenberg
4d8a53da2f Diego Casorran's amiga makefiles 2003-12-10 13:54:57 +00:00
Daniel Stenberg
6c56340e1a native AmigaOS support by Diego Casorran 2003-12-10 13:53:35 +00:00
Daniel Stenberg
ac114ed45b do the ares stuff in the configure file 2003-12-10 13:38:51 +00:00
Daniel Stenberg
ee337309cf better human error message when a FTP response can't be read 2003-12-08 13:06:08 +00:00
Daniel Stenberg
0ab2dff69c based on Gisle's comment, I removed the use of syslog() and fixed the
netdb.h include, then I re-indented some code to use curl-style
2003-12-04 15:21:49 +00:00
Daniel Stenberg
8ccc1148d9 my contentlength adjustment broke the ftp download range stuff, this makes
it work again
2003-12-03 08:26:31 +00:00
Daniel Stenberg
06c38330ba Steve Green fixed Curl_resolv() 2003-12-03 07:55:51 +00:00
Daniel Stenberg
0f4d042d3e Ignore content-length when chunked transfer-encoding is transfered. 2003-12-03 07:52:00 +00:00
Daniel Stenberg
c79de8d86e less complicated code for the MSG_NOSIGNAL detection 2003-12-02 22:05:23 +00:00
Daniel Stenberg
1b99d33b59 fix compiler warnings 2003-12-02 13:40:12 +00:00
Daniel Stenberg
800052dc50 use the HAVE_KRB4 define instead of just KRB4 2003-12-02 13:27:29 +00:00
Daniel Stenberg
2c22feced2 fixes from Gisle Vanem to try 'AUTH SSL' before 'AUTH TLS', edited by me 2003-12-02 13:21:53 +00:00
Daniel Stenberg
2cf209d3f7 If HAVE_MSG_NOSIGNAL is set, we use MSG_NOSIGNAL when we call send() and
recv() and we no longer attempt to ignore the SIGPIPE signal.
2003-12-02 10:12:44 +00:00
Daniel Stenberg
d1d417664e Gisle Vanem fixed the check-order for FTPS and FTP. 2003-12-02 06:25:41 +00:00
Daniel Stenberg
cd653f1be9 FTPS now works with active ftp and uploads too. 2003-12-01 10:14:39 +00:00
Daniel Stenberg
012c4ee1fa James Clancy updated the Borland makefiles 2003-11-27 12:24:22 +00:00
Daniel Stenberg
471c30372b Markus Moeller's change to check for HAVE_SPNEGO instead of the previous 2003-11-27 09:52:44 +00:00
Daniel Stenberg
1d977b7848 When basic is the only auth wanted (which it is by default), the auth phase
is always considered done immediately as Basic needs to extra passes.

This fix corrects bug report #848371.
2003-11-25 09:05:15 +00:00
Daniel Stenberg
45614d54c6 allow the end-of-headers from a proxy response to CONNECT end with a CRCR
as well as a CRLF
2003-11-24 16:17:55 +00:00
Daniel Stenberg
d8cf2d42c0 prevent warning for non-SSL builds 2003-11-24 11:44:04 +00:00
Daniel Stenberg
96d7a95ce4 windows build fix based on a patch by Gisle Vanem 2003-11-24 11:41:26 +00:00
Daniel Stenberg
d5d55a856e adjusted code to the new socket fields in the sessionhandle struct 2003-11-24 09:04:09 +00:00
Daniel Stenberg
1e98727c55 FTPS support added as RFC2228 and the murray-ftp-auth-ssl draft describe it 2003-11-24 07:15:37 +00:00
Daniel Stenberg
af9dc9f128 Gaz Iqbal fixed a range string memory leak! 2003-11-24 07:10:02 +00:00
Daniel Stenberg
4874aa6986 fixed wrong comment 2003-11-24 07:08:07 +00:00
Daniel Stenberg
3fed12a203 combine the two identical cases 2003-11-20 14:16:18 +00:00
Daniel Stenberg
f481b3e1dc bail out properly on a 407 when we can't authenticate basic, bug report
#845247
2003-11-20 09:53:42 +00:00
Daniel Stenberg
edce444551 If a partial file has been read or written, force a closure the existing
connection to avoid re-use of it, since we cannot know in what state it is.
2003-11-19 14:36:42 +00:00
Daniel Stenberg
7bee4140e8 respect bits.close even if an error already is set, but make sure that the
existing error is the one returned back
2003-11-19 14:35:40 +00:00
Daniel Stenberg
a0a5668dbd do ares_destroy() on the ares handle when we're done in Curl_is_resolved() 2003-11-15 10:29:43 +00:00
Daniel Stenberg
dfe0118033 Mathias Axelsson found a case where we free()d the server certificate twice! 2003-11-15 10:00:20 +00:00
Daniel Stenberg
a701f3dddf Siddhartha Prakash Jain found a case with a bad resolve that we didn't
properly bail out from, when using ares.
2003-11-14 11:56:15 +00:00
Daniel Stenberg
43bb20461f Peter Sylvester found a flaw in the connect code for ipv6-enabled hosts.
I guess it seldomly happens on linux and that's why it wasn't found before.
He used Solaris to notice it.

I took the opportunity to rewrite the Curl_connecthost() slightly to feature
less duplicate code in the two different versions (ipv4/ipv6).
2003-11-13 13:28:40 +00:00
Daniel Stenberg
1e251a64f3 Default Content-Type for formparts has changed to "application/octet-stream".
This seems more appropriate, and I believe mozilla and the likes do this.

.html files now get text/html as Content-Type.

Pointed out in bug report #839806.
2003-11-13 07:43:18 +00:00
Daniel Stenberg
776f0bd95e don't log failed socket() calls 2003-11-13 07:33:51 +00:00
Daniel Stenberg
ad77f760cf Added CURLOPT_NETRC_FILE. 2003-11-11 14:30:43 +00:00
Daniel Stenberg
a50d2a45d7 Generate the ca-bundle.h file in the build dir and not in the source dir,
which works nicely since the build dir is before the source dir in the
include path.
2003-11-10 09:28:22 +00:00
Daniel Stenberg
17a834bc63 After Sbastien Willemijns' bug report, we now check the separators properly
in the 229-reply servers respond on a EPSV command and bail out better if
the reply string is not valid RFC2428-compliant.
2003-11-10 08:12:53 +00:00
Daniel Stenberg
f1445ea228 remove the struct fields for the deprecated passwd prompt callback 2003-11-07 13:26:00 +00:00
Daniel Stenberg
b1aa8eb7ef the resource file itself 2003-11-07 07:20:15 +00:00
Daniel Stenberg
967cb4d75e removed the resource lines I shouldn't have added in the firt place 2003-11-07 07:13:56 +00:00
Daniel Stenberg
41be41358e CURLDEBUG, no underscore 2003-11-06 16:04:19 +00:00
Daniel Stenberg
ecb818805b Gisle Vanem's libcurl.dll version info patch applied 2003-11-06 15:09:30 +00:00
Daniel Stenberg
bd4c081157 unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard 2003-11-06 07:55:45 +00:00
Daniel Stenberg
927e392b31 Mac OS X framework build files, contributed by Matt Veenstra 2003-11-06 07:42:02 +00:00
Daniel Stenberg
aeb5edbf07 Moved the TRUE and FALSE #defines to lib/setup.h instead, as they don't
belong in the public header file. They are not in our name space so we
should not set them globally.
2003-11-06 07:21:32 +00:00
Daniel Stenberg
c45f43ce32 Troels Walsted Hansen fixed the MSVC makefiles to build fine on Windows. 2003-11-04 06:59:25 +00:00
Daniel Stenberg
0eb037a849 spellfix in the generated comment by Kevin Roth 2003-11-04 06:52:26 +00:00
Daniel Stenberg
a717afc3a7 gmtime() really can't even return NULL, can it? 2003-10-31 21:43:22 +00:00
Daniel Stenberg
a7aacac5e8 assume that MDTM returns the timestamp as UTC 2003-10-31 21:36:43 +00:00
Daniel Stenberg
693df0fa34 silly me, I was meaning to do this change already as discussed on the libcurl
list, we get the time in GMT and not localtime
2003-10-30 09:13:04 +00:00
Daniel Stenberg
fb26b2bd98 curl --head now reports info "headers" on file:// URLs as well 2003-10-30 09:08:16 +00:00
Daniel Stenberg
46accd62d1 when getting headers only, stop pretending the reported time is GMT, as it
isn't. In fact, it might be, but we have no idea.
2003-10-30 09:06:24 +00:00
Daniel Stenberg
c964aedf3b Only compile the ipv6-section for ipv6-enabled libcurls. Should save
us some trouble.
2003-10-30 07:13:13 +00:00
Daniel Stenberg
e9c835ad06 David Hull made the file: URL parser also accept the somewhat sloppy file
syntax: file:/path. I added test case 203 to verify this.
2003-10-29 09:53:21 +00:00
Daniel Stenberg
25613503cb Another glibc resolve name fix 2003-10-28 13:06:15 +00:00
Daniel Stenberg
1cdc66d927 overlapping memory chunks with strcpy(), detected by the friendly valgrind 2003-10-28 09:17:15 +00:00
Daniel Stenberg
203f66d0cb James Bursa's fix to prevent failf() to write outside its buffer boundary 2003-10-27 06:35:47 +00:00
Daniel Stenberg
4cccceb034 snprintf() made a single-byte buffer overflow, as it could write a zero
outside its given buffer. Discovered and reported by James Bursa.
2003-10-26 15:37:45 +00:00
Daniel Stenberg
a5e22867c7 Resuming a download of an already downloaded document, that is trying to get
a range of a document beyond its size, caused libcurl to "hang" until the
server closed the connection and then it returned error 18.

This is bad. This way, we don't return any error at all, which isn't nice
either, as we need to alert the app somehow that the request range was out
of size.
2003-10-24 21:54:34 +00:00
Daniel Stenberg
fcfc6de918 Based on David Hull's fix in bug report 804599, we now check for solaris
and gcc, to set the -mimpure-text link flag for linking the lib better.
2003-10-24 21:26:04 +00:00
Daniel Stenberg
656d4b4c20 if malloc fails, we must bail out nicely 2003-10-24 12:58:59 +00:00
Daniel Stenberg
7247041e21 Improved checks for bad memory situations and proper behaviour when we
run out of memory.
2003-10-24 12:58:29 +00:00
Daniel Stenberg
017a78d0c5 better bailing-out cleanup if a malloc fails in the DNS cache 2003-10-24 12:57:23 +00:00
Daniel Stenberg
14f795816d Georg Horn's fixes to do different CA cert verifications. They can now be
done even if the result is ignored, as some sites seem to require that.
2003-10-23 07:44:55 +00:00
Daniel Stenberg
f232baf4d2 Dylan Ellicott added the release-libcurl-ssl-dll target 2003-10-22 11:26:41 +00:00
Daniel Stenberg
b439e8ffb7 Do the auth stuff at the end-of-headers and not at the start-of-body, as
we might not get a body when we get a 401 with a set of WWW-Authenticate:
headers. This fixes the problem Kevin Roth detected in 7.10.8-pre4 and pre5.
Verified by test case 91.
2003-10-22 11:15:48 +00:00
Daniel Stenberg
640d6a5564 updated for mingw32 2003-10-21 14:14:25 +00:00
Daniel Stenberg
d1c08e1d85 conn->user and conn->passwd will now always be set to point to something.
If not user or password is set, they will point to a "" string.
2003-10-21 06:34:15 +00:00
Daniel Stenberg
b83c7ade10 allow no user and password for proxy too, Basic 2003-10-20 20:32:08 +00:00
Daniel Stenberg
7d6584e140 allow no user and no passwd when doing basic auth 2003-10-20 20:30:40 +00:00
Daniel Stenberg
31b6bb6a41 lock the DNS cache properly before adding an entry when using asynch DNS 2003-10-20 08:45:33 +00:00
Daniel Stenberg
d9f961ed2d better error output on SSL errors when receiving data - Georg Horn patch 2003-10-19 17:38:51 +00:00
Daniel Stenberg
c7f5476416 fixed the bug my previous change introduced 2003-10-19 05:42:49 +00:00
Daniel Stenberg
381c6c5d52 minor fix to not shadow a variable 2003-10-18 20:38:18 +00:00