Daniel Stenberg
1a984ea847
get the previous struct keep_sigact
2001-11-07 12:56:13 +00:00
Daniel Stenberg
2e32d415c0
myalarm() is history, we now use HAVE_ALARM and we now do our very best to
...
1 - restore the previous sigaction struct as soon as we are about to shut
off our timeout
2 - restore the previous alarm() timeout, in case an application or similar
had it running before we "borrowed" it for a while.
No, this does not fix the multi-thread problem you get with alarm(). This
patch should correct bug report #478780 :
//sourceforge.net/tracker/?func=detail&atid=100976&aid=478780&group_id=976
If not, please post details!
2001-11-06 19:33:13 +00:00
Daniel Stenberg
9b6545c479
ConnectionExists() now returns FALSE immediately if it finds a connection
...
that is dead, because it can only find one entry anyway and if that is dead
there won't be any other entry that matches
2001-11-01 13:54:32 +00:00
Daniel Stenberg
c4f1a9f690
Removed the SocketIsDead() stuff for SSL again as it doesn't work. We must
...
rely on the new go-ahead-and-try mechanism that I just added to Transfer()
2001-10-31 15:14:52 +00:00
Daniel Stenberg
b07e2a08f9
nonblock => Curl_nonblock, remade the check for a live SSL connection (again)
2001-10-31 08:44:11 +00:00
Daniel Stenberg
dbd32278f8
Added an additional SSL check for a dead socket before we re-use an SSL
...
connection. The simple socket-check is not enough in these cases.
2001-10-30 15:21:45 +00:00
Daniel Stenberg
42a9d96fae
fixed conn->name error on connection re-use and enlarged the 'gname' array
...
to hold 512 bytes (for user+password+hostname)
2001-10-29 10:10:21 +00:00
Daniel Stenberg
4e37187e44
now counts header size return from server and if nothing is returned from a
...
HTTP server we return error
2001-10-19 11:58:32 +00:00
Daniel Stenberg
532bca41e5
Curl_tvdiff() now returns a millisecond diff, no double like before
2001-10-12 12:32:20 +00:00
Sterling Hughes
8e91d5de8e
looks nicer and is better compatible with older vim versions
2001-10-11 09:32:19 +00:00
Daniel Stenberg
f2a25966cf
cookiejar now enables the cookie engine
2001-10-10 12:48:32 +00:00
Daniel Stenberg
a9181f8f00
added the option CURLOPT_HTTP_VERSION that can specify which HTTP version
...
libcurl should use in its request
2001-10-09 06:52:37 +00:00
Daniel Stenberg
3685f792cb
ignore SIGPIPE, as that can be actually get sent when we write to a socket
2001-10-09 06:23:26 +00:00
Daniel Stenberg
5d9ae88f58
getaddrinfo() cleanups
2001-10-04 13:25:12 +00:00
Daniel Stenberg
dd02881788
added port number in informational connect message
2001-10-02 12:51:15 +00:00
Daniel Stenberg
ced8955325
IPv6 adjustments, connect()ing to bad ports still don't work properly for
...
IPv6
2001-10-02 11:26:53 +00:00
Daniel Stenberg
51ca5fcbe0
major connecting updates
2001-10-02 09:40:06 +00:00
Daniel Stenberg
56ff2aa059
pick the correct timeout before the connecthost call
2001-10-01 23:25:59 +00:00
Daniel Stenberg
6918427fae
conn->hp is now conn->hostaddr
...
changed the Curl_connethost() proto again
2001-10-01 22:32:37 +00:00
Daniel Stenberg
09da90076f
moved the myalarm() usage, and now makes sure to switch it off after the
...
name resolving, as that should be the *ONLY* section in libcurl that may
take a while in a synchronous call.
2001-10-01 11:27:39 +00:00
Daniel Stenberg
c5fdeef41d
introduced non-blocking connects
2001-10-01 08:59:17 +00:00
Daniel Stenberg
48dc74aecc
more transparant support for IPv6 name resolving
2001-09-28 07:05:26 +00:00
Daniel Stenberg
b556d6caee
fixed bug report #462600 , following a Location: when the initial URL didn't
...
have a protocol:// part did wrong
2001-09-18 18:33:25 +00:00
Daniel Stenberg
146413a53c
the stuff formerly done in Curl_http_close is now done in Curl_close
2001-09-18 15:30:38 +00:00
Daniel Stenberg
bec97a0999
ConnectionKillOne() _can_ return -1 as an indication of error
...
This is T. Bharath's fix
2001-09-12 08:00:30 +00:00
Daniel Stenberg
a2c78607a6
CURLOPT_SSL_CIPHER_LIST support
2001-09-11 22:23:16 +00:00
Sterling Hughes
6147879837
Added formatting sections for emacs and vim
2001-09-07 04:01:32 +00:00
Daniel Stenberg
bae1a75731
use the LIBCURL_NAME instead of the "hardcoded" string
2001-09-03 07:01:49 +00:00
Daniel Stenberg
0ece1b5c34
Major rename and redesign of the internal "backbone" structs. Details will
...
be posted in a minute to the libcurl list.
2001-08-30 22:48:34 +00:00
Daniel Stenberg
a2b6ef3478
cookie jar adjustments
2001-08-29 09:32:18 +00:00
Daniel Stenberg
3c52c53ddd
Added SSL session ID caching, moved some SSL code from url.c to ssluse.c
2001-08-28 08:37:54 +00:00
Daniel Stenberg
12acab9b86
When setting *_URL or *_PROXY in *_setopt(), it is important that we check
...
and possibly free the existing pointer first, and then clear the "allocated"
bit. We previously mistakenly could free the new pointer passed to us by
the friendly user...!
2001-08-23 14:06:38 +00:00
Daniel Stenberg
0f425b01aa
CURLOPT_FTPASCII is the old name, CURLOPT_TRANSFERTEXT is the new
2001-08-22 11:24:57 +00:00
Daniel Stenberg
9ce94207e2
IPv6-addresses can have dots too!
2001-08-15 21:54:24 +00:00
Daniel Stenberg
9518e06413
extract IPv6-style specified IP-addresses properly
2001-08-15 21:40:09 +00:00
Daniel Stenberg
10ab082188
non-public functions should not use CURL * as arguments, so I changed them
...
to use 'struct UrlData *' instead
2001-08-15 06:55:42 +00:00
Daniel Stenberg
616d8eda41
Curl_open() only take one argument now,
...
Curl_ldap_done() and Curl_dict_done() were removed,
compiler warnings corrected
2001-08-14 08:40:06 +00:00
Daniel Stenberg
95837043e2
Patrick Bihan-Faou introduced CURLOPT_SSL_VERIFYHOST and code to deal with
...
it.
2001-08-08 07:16:47 +00:00
Daniel Stenberg
7948b0becc
VMS #include fixes,
...
file:// URL treatment improvements
2001-08-06 12:14:53 +00:00
Daniel Stenberg
5ab1a10e9c
corrected the comment for CURLOPT_WRITEHEADER in setopt(), and made it
...
read a void * and not a FILE *, as that was how it used to work and not
anymore...
2001-08-06 08:18:15 +00:00
Daniel Stenberg
8987244758
httpreq cleanup fix
2001-08-03 11:52:53 +00:00
Daniel Stenberg
9a78db6e59
Salvador Dvila's ftp range download fix
2001-06-12 09:21:37 +00:00
Daniel Stenberg
5e326014cd
SDavila posted a fix that sets conn->bits.use_range properly when doing
...
resumed downloads
2001-06-07 05:59:20 +00:00
Daniel Stenberg
fe82ddda46
CURLOPT_MUTE and data->bits.mute are history, removed, gone!
2001-05-31 13:50:28 +00:00
Daniel Stenberg
ffa7c13117
libcurl now has MUTE and NOPROGRESS set by default
2001-05-30 12:51:24 +00:00
Daniel Stenberg
870bacd689
include strtok.h to get the prototype
2001-05-30 11:06:56 +00:00
Daniel Stenberg
d567659bf4
strtok() replaced with strtok_r()
2001-05-29 19:17:39 +00:00
Daniel Stenberg
d300cf4d84
T. Bharath's comments about SSL cleanup incorporated, and the two new
...
curl_global_* functions
2001-05-28 14:12:43 +00:00
Daniel Stenberg
8526fa97ce
Pawel A. Gajda fixed resumed transfers on persistent connections
2001-05-15 07:21:13 +00:00
Daniel Stenberg
282939c6fe
another multiple FTP transfer fix
2001-05-11 06:40:04 +00:00
Daniel Stenberg
fef1fc0d32
Ingo Wilken's redirect fixes
2001-05-11 06:10:48 +00:00
Daniel Stenberg
7be8993f94
When re-using a connection, the path pointers were not setup properly so
...
that multiple FTP transfers were not possible
2001-05-10 09:31:48 +00:00
Daniel Stenberg
9304055df5
'FILE *' changed to 'void *' in all callback functions
2001-05-04 07:47:11 +00:00
Daniel Stenberg
350c536f6c
Cris Bailiff's fix to disable chunked transfers on re-used persistent
...
connections.
2001-05-03 10:53:01 +00:00
Daniel Stenberg
3974f30ed4
improved treatment of "Content-Length: 0", which is done by having
...
maxdownload set to -1 when not used
2001-04-27 08:02:10 +00:00
Daniel Stenberg
583c2e2f09
connection re-using didn't work on non-default ports when not using proxy
...
until now
2001-04-25 21:24:27 +00:00
Daniel Stenberg
fde31f0988
no need to copy the name when re-using the connection, we already have the
...
same name in that buffer from the URL parsing!
2001-04-23 06:11:08 +00:00
Daniel Stenberg
2cf26d4fb7
copy the name properly when re-using a connection
2001-04-22 16:47:55 +00:00
Daniel Stenberg
3fd65fb7d8
Remade resume stuff to keep data in the connectdata struct instead of the
...
main handle struct to work with persistant connections
2001-04-18 07:25:11 +00:00
Daniel Stenberg
18f044f19d
we don't use the HTTP_PROXY environment variable in uppercase anymore, since
...
it might become a security problem (Bugs item #415391 )
2001-04-11 14:13:52 +00:00
Daniel Stenberg
62056a644f
oops, missed the shut-off non-blocking fix
2001-04-11 06:59:00 +00:00
Daniel Stenberg
022099266e
SM made the connection timeout work for windows boxes!
2001-04-11 06:41:54 +00:00
Daniel Stenberg
90bb87b40e
setopt() works with the new CURLOPT_HEADERFUNCTION:
2001-04-10 06:51:25 +00:00
Daniel Stenberg
28497e7ee4
better error checks for failure conditions (based on Puneet Pawaia's reports)
2001-04-03 10:20:23 +00:00
Daniel Stenberg
b1328430c9
ftps:// support added
2001-03-29 08:16:55 +00:00
Daniel Stenberg
76576cd1e2
ConnectionExists() wrongly returned TRUE for too many connections if proxy
...
was not used...
2001-03-23 07:46:14 +00:00
Daniel Stenberg
d6c456db85
added connect timeout support
2001-03-15 14:38:30 +00:00
Daniel Stenberg
b7fc1e45b5
now works with IPv6 and HTTP proxy
2001-03-14 18:18:02 +00:00
Daniel Stenberg
f8e1fc32de
Edin Kadribaic's bug report #408488 forced a rearrange of two struct fields
...
from urldata to connectdata, quite correctly.
2001-03-14 14:11:11 +00:00
Daniel Stenberg
87b0b7cab9
initial close policy support
2001-03-13 07:54:18 +00:00
Daniel Stenberg
f2fd1b8856
two new random seed options: CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET
2001-03-12 15:47:17 +00:00
Daniel Stenberg
38c349f751
support for a few new libcurl 7.7 CURLOPT_* options added
2001-03-12 15:05:54 +00:00
Daniel Stenberg
d774b10afb
Added infof() calls for persistant connection info, we are very likely to
...
need these at least for debugging 7.7 and probably later as well...
2001-03-12 13:58:03 +00:00
Daniel Stenberg
5bbe189420
modified Curl_disconnect() so that it unlinks itself from the data struct,
...
it saves me from more mistakes when the connectindex is -1 ... also, there's
no point in having its parent do it as all parents would do it anyway.
2001-03-12 10:13:42 +00:00
Daniel Stenberg
8eb8a0a8e4
bugfix: don't use the connectindex if it is -1
2001-03-12 09:44:57 +00:00
Daniel Stenberg
e9b763ff05
use the new name and hostname even though an old connection is reused, since
...
we can re-use a proxy connection that actually has different host names on
the same connection
2001-03-09 16:50:08 +00:00
Daniel Stenberg
8ec4dba599
removed handles and states from the main structs
...
renamed prefixes from curl_ to Curl_
made persistant connections work with http proxies (at least partly)
2001-03-09 15:18:25 +00:00
Daniel Stenberg
84e94fda8b
remade FILE:// support to look more as the other protocols
2001-03-05 13:39:01 +00:00
Daniel Stenberg
cf8704ccdf
7.7 alpha 2 commit
2001-03-04 16:34:20 +00:00
Daniel Stenberg
dd893fd8a4
ipv6 fix for the 'port' no longer in urldata
2001-03-03 17:50:01 +00:00
Daniel Stenberg
d1cfbd51b5
remade the port number stuff so that following locations work and doing
...
intermixed HTTP and FTP persistant connections also work!
2001-03-02 15:34:15 +00:00
Daniel Stenberg
af4451ec26
improved connections
2001-03-02 07:43:20 +00:00
Daniel Stenberg
9bc24e4876
cleanup better when connects fail
2001-02-28 14:03:46 +00:00
Daniel Stenberg
4af55809e4
added some infof() calls for persistant info
2001-02-22 23:51:17 +00:00
Daniel Stenberg
584dbffe60
moved the dynamicly set pointers to the connectdata struct
2001-02-22 23:32:02 +00:00
Daniel Stenberg
da06a6e7e3
IPv6-adjustments
2001-02-21 17:15:09 +00:00
Daniel Stenberg
46e0937263
corrected memory leaks when re-using connections
2001-02-20 17:46:35 +00:00
Daniel Stenberg
a1d6ad2610
multiple connection support initial commit
2001-02-20 17:35:51 +00:00
Daniel Stenberg
f7a8909372
Made CURLOPT_POST no longer necessary when CURLOPT_POSTFIELDS is used
2001-02-19 09:29:19 +00:00
Daniel Stenberg
ce95d2020f
better english timeouted => timed out, as suggested by Larry Fahnoe
2001-02-13 21:57:04 +00:00
Daniel Stenberg
a140e5311d
moved the protocol-specific free to allow easier multiple transfers
2001-02-13 13:34:16 +00:00
Daniel Stenberg
c107303ade
very minor indentation fix
2001-02-12 08:22:19 +00:00
Daniel Stenberg
b12e334d83
if netrc is parsed and our host was found in there, set data->bits.user_passwd
...
unconditioanlly!
2001-02-08 13:53:13 +00:00
Daniel Stenberg
58d70db92e
no longer #includes "getenv.h"
2001-02-07 08:36:23 +00:00
Daniel Stenberg
f6e2bfd464
Jun-ichiro itojun Hagino's IPv6 adjustments
2001-02-05 23:04:44 +00:00
Daniel Stenberg
4cc76d1576
upload sets HTTP request to PUT for "HTTP upload"
2001-01-29 07:23:11 +00:00
Daniel Stenberg
62fec1d28d
data->httpreq was not set properly
2001-01-27 17:58:15 +00:00
Daniel Stenberg
fcb347d124
Added a httpreq field in the main struct so that there's one field to check
...
for what HTTP request that is being used. The old bit-style fields are still
in there as well.
2001-01-26 15:52:01 +00:00
Daniel Stenberg
30eab8ca51
moved curl_read() and curl_write() to sendf.c
2001-01-25 12:23:57 +00:00
Daniel Stenberg
29bcba9a90
Ingo Ralf Blum's cygwin fixes
2001-01-24 14:44:05 +00:00
Daniel Stenberg
8a75120568
added comments all over
2001-01-24 12:32:34 +00:00
Daniel Stenberg
7872cc131a
Enabled support for IPv6-style IP-addresses if ENABLE_IPV6 is set. If it isn't,
...
curl will return an error when such an address is used.
2001-01-23 10:21:30 +00:00
Daniel Stenberg
ae0a6835bd
Transfer is now Curl_Tranfer() and transfer.h is used instead of highlevel.h
...
and download.h
2001-01-17 13:23:01 +00:00
Daniel Stenberg
4031104404
Internal symbols that aren't static are now prefixed with 'Curl_'
2001-01-05 10:11:41 +00:00
Daniel Stenberg
24dee483e9
dual-license fix
2001-01-03 09:29:33 +00:00
Daniel Stenberg
69abefc936
Added SA_RESTART since (some) HPUX doesn't have that define and it doesn't
...
need it
2000-12-07 09:09:26 +00:00
Daniel Stenberg
9980568f42
removed '#if 0' sections
2000-11-29 08:16:27 +00:00
Daniel Stenberg
b8f7d94ef1
James Griffiths' max-redirs fix
2000-11-28 09:05:47 +00:00
Daniel Stenberg
b5739b3a97
document time fixes
2000-11-22 13:50:17 +00:00
Daniel Stenberg
c938166520
set rangestringalloc to 0 after the string has been freed to prevent it
...
from being freed twice (a NULL free the second time)
2000-11-21 19:06:55 +00:00
Daniel Stenberg
2a5e68ea89
added some defensive code around the GetHost()'s third argument result
2000-11-21 15:36:38 +00:00
Daniel Stenberg
3e5ba33e2d
removed two unused variables and added an extra set of parentheses, done
...
to remove pedantic compiler warnings
2000-11-21 09:31:55 +00:00
Daniel Stenberg
42280e95bf
removed URL size restrictions
2000-11-20 08:53:21 +00:00
Daniel Stenberg
91c879461e
Alexander Kourakos's lowercase environment variable fix
2000-11-20 07:35:21 +00:00
Daniel Stenberg
bda9fde4d8
spell correction resolv => resolve in two error messages
2000-11-18 16:31:27 +00:00
Daniel Stenberg
868488b518
memory leak cleanup campaign
2000-11-17 14:03:58 +00:00
Daniel Stenberg
2297bc4791
changed the 'port' field to long to better work with the va_arg() system
2000-11-17 09:48:21 +00:00
Daniel Stenberg
7b5c551835
adjusted to the changed getpass_r()
2000-11-10 09:19:09 +00:00
Daniel Stenberg
56548f9a13
getpass_r() is the new getpass name for thread-safe getpass!
2000-11-06 23:18:50 +00:00
Daniel Stenberg
9f4f16b55d
new getpass proto and function pointer usage
2000-11-06 22:53:50 +00:00
Daniel Stenberg
b6bb734215
Emmanuel Tychon found a problem when specifying user-name only in a URL
...
(and the password entered interactively). This fix also includes proper
URL-decoding of the user name and password if specified in the URL.
2000-11-06 08:12:30 +00:00
Daniel Stenberg
852b664e45
added signal in case sigaction is missing
2000-11-01 08:19:10 +00:00
Daniel Stenberg
0cff279063
new urldata ssl layout and T. Bharath brought the new SSL cert verify function
2000-10-30 11:53:40 +00:00
Daniel Stenberg
9d0d8280e9
Georg Horn provided a fix for the timeout signal stuff. Finally the timeout
...
switch should work under most unixes (requires sigaction())
2000-10-26 21:57:12 +00:00
Daniel Stenberg
02037971ed
renamed getpass() to my_getpass() and it is now thread-safe and should
...
disable passwd-echoing on win32 (supplied by Bjrn Stenberg)
2000-10-26 10:32:04 +00:00
Daniel Stenberg
c44b10de41
remote_port used in Host: headers only when non-default
2000-10-20 13:48:38 +00:00
Daniel Stenberg
751d503f54
sprintf() => snprintf()
2000-10-12 08:22:16 +00:00
Daniel Stenberg
7717212912
free the URL string if that was allocated
2000-10-11 10:58:37 +00:00
Daniel Stenberg
0f8facb49b
added memory debugging include file
2000-10-09 11:12:34 +00:00
Daniel Stenberg
c58dc8f82f
the --interface code doesn't work on win32 and is #ifndef WIN32 now
2000-10-06 11:03:20 +00:00
Daniel Stenberg
03a56b3e56
HTTP resume fix, now the range pointer may be allocated
2000-10-06 06:28:39 +00:00
Daniel Stenberg
2cdd150723
removed writeinfo stuff
2000-10-03 22:04:04 +00:00
Daniel Stenberg
eee5c71aff
inits the upload_bufsize at connect time
2000-10-03 11:03:55 +00:00
Daniel Stenberg
13962adcb5
7.3 commit
2000-09-28 10:26:44 +00:00
Daniel Stenberg
d03db1cd11
corrected curl_write() for kerberos
2000-09-25 22:16:36 +00:00
Daniel Stenberg
ce406a732f
krb4 support
...
new GetHost() usage
new base64 encoder usage
2000-09-21 08:50:05 +00:00
Daniel Stenberg
c9c7fcf411
Stephen Kick's interface fixes
2000-09-18 21:54:08 +00:00
Daniel Stenberg
86ff2c46b7
introduced 'tunnel through http proxy' for ftp
2000-09-14 14:05:01 +00:00
Daniel Stenberg
0a2f677374
file:// fix that prevents name lookup and sets no-upload and no-download
2000-09-14 10:41:07 +00:00
Daniel Stenberg
b6e18f2f66
#include "setup.h" moved first of all includes
2000-08-24 14:26:33 +00:00
Daniel Stenberg
1b1f143cd6
hostname and large file support added
2000-08-24 12:33:16 +00:00
Daniel Stenberg
e2a63bee59
removed HAVE_VPRINTF dependence
2000-08-17 15:40:26 +00:00
Daniel Stenberg
e7ce27a22c
Linux name resolving problem fixed with larger name-buffer
2000-08-11 18:08:50 +00:00
Daniel Stenberg
8fd44dd648
allow zero length user names for http
2000-08-08 13:46:26 +00:00
Daniel Stenberg
a79b541bd2
made urlfree static, added (void) in front of one of the SSL calls. I did
...
these changes when trying to run lclint on the curl code.
2000-07-31 21:31:27 +00:00
Daniel Stenberg
215c75135b
clear the httproxy bit on cleanup if the allocproxy bit was set
2000-07-28 07:56:06 +00:00
Daniel Stenberg
293cae68bf
uses the new curl_close function to clean up the http-specific auth_host
2000-07-25 21:17:45 +00:00
Daniel Stenberg
0cb4814105
tiny adjustments to set the start-time before the curl_connect() is called to
...
allow the connect function to better deal with timeouts, as was just added
to ftp
2000-07-25 12:13:57 +00:00
Daniel Stenberg
bb3fa8855c
Added CURLOPT_PROXYPORT support
...
Added a missing free() in curl_disconnect()
Made (https) connect errors abort better and earlier
2000-07-25 07:31:35 +00:00
Daniel Stenberg
1ef3600a07
haxx.nu => haxx.se
2000-06-20 15:31:26 +00:00