platform/upstream/curl.git
22 years agothe initial C code for the new HTTP test server
Daniel Stenberg [Thu, 7 Feb 2002 09:39:15 +0000 (09:39 +0000)]
the initial C code for the new HTTP test server

22 years agochanges since 7.9.4
Daniel Stenberg [Thu, 7 Feb 2002 09:34:43 +0000 (09:34 +0000)]
changes since 7.9.4

22 years agodon't add 2 to the post size, that was a previous mistake because there
Daniel Stenberg [Thu, 7 Feb 2002 09:32:40 +0000 (09:32 +0000)]
don't add 2 to the post size, that was a previous mistake because there
was an extra CRLF added to the post data

22 years agoMiklos Nemeth windows update
Daniel Stenberg [Wed, 6 Feb 2002 16:04:03 +0000 (16:04 +0000)]
Miklos Nemeth windows update

22 years agoMiklos Nemeth added comments
Daniel Stenberg [Wed, 6 Feb 2002 16:03:28 +0000 (16:03 +0000)]
Miklos Nemeth added comments

22 years agoMiklos Nemeth improved the windows section
Daniel Stenberg [Wed, 6 Feb 2002 16:01:10 +0000 (16:01 +0000)]
Miklos Nemeth improved the windows section

22 years agoMiklos Nemeth improved
Daniel Stenberg [Wed, 6 Feb 2002 16:00:55 +0000 (16:00 +0000)]
Miklos Nemeth improved

22 years agoARGH the CRLF I removed recently was not only done after the initial
Daniel Stenberg [Wed, 6 Feb 2002 15:48:53 +0000 (15:48 +0000)]
ARGH the CRLF I removed recently was not only done after the initial
content-type header, it was used for each part and thus without this it
failed MISERABLY. *smacks forhead*

22 years agoa few of the SSL options were added in 7.9.3 and it should be noted
Daniel Stenberg [Wed, 6 Feb 2002 09:49:34 +0000 (09:49 +0000)]
a few of the SSL options were added in 7.9.3 and it should be noted
accordingly

22 years agoBrent Beardsley found the content-type bug!
Daniel Stenberg [Wed, 6 Feb 2002 07:02:13 +0000 (07:02 +0000)]
Brent Beardsley found the content-type bug!

22 years agoKevin Roth's discovered SSL download problem
Daniel Stenberg [Tue, 5 Feb 2002 15:33:00 +0000 (15:33 +0000)]
Kevin Roth's discovered SSL download problem

22 years ago7.9.4
Daniel Stenberg [Tue, 5 Feb 2002 11:43:29 +0000 (11:43 +0000)]
7.9.4

22 years ago7.9.4-pre2
Daniel Stenberg [Mon, 4 Feb 2002 09:51:41 +0000 (09:51 +0000)]
7.9.4-pre2

22 years agoEric Melville fixed spell mistakes on a few places
Daniel Stenberg [Sun, 3 Feb 2002 15:00:51 +0000 (15:00 +0000)]
Eric Melville fixed spell mistakes on a few places

22 years agoAndreas Damm made getdate use gmtime_r if available
Daniel Stenberg [Fri, 1 Feb 2002 11:11:26 +0000 (11:11 +0000)]
Andreas Damm made getdate use gmtime_r if available

22 years agoAdded the recycle handles chapter
Daniel Stenberg [Thu, 31 Jan 2002 14:41:01 +0000 (14:41 +0000)]
Added the recycle handles chapter
Added most of the Customizing Operations chapter

22 years agostruct HttpHeader died ages ago, corrected comments
Daniel Stenberg [Thu, 31 Jan 2002 14:24:55 +0000 (14:24 +0000)]
struct HttpHeader died ages ago, corrected comments

22 years agoAlbert Chin:
Daniel Stenberg [Thu, 31 Jan 2002 07:53:20 +0000 (07:53 +0000)]
Albert Chin:
Forgot one case. On HP-UX 11.00, gethostbyname_r() is properly defined
if -D_REENTRANT is used. Without it, the compiler still accepts the
function prototype but gives a warning about hostent_data going out of
scope. This is because struct hostent_data is not declared. So, we
force an error by trying to set a variable to the struct.

22 years ago_num_chars did wrong when called with a number that starts with 1!
Daniel Stenberg [Thu, 31 Jan 2002 07:51:06 +0000 (07:51 +0000)]
_num_chars did wrong when called with a number that starts with 1!

22 years agocorrected the docs for CURLINFO_FILETIME
Daniel Stenberg [Thu, 31 Jan 2002 07:17:32 +0000 (07:17 +0000)]
corrected the docs for  CURLINFO_FILETIME

22 years agoGiaslas Georgios provided docs for CURLINFO_CONTENT_TYPE
Daniel Stenberg [Thu, 31 Jan 2002 07:10:41 +0000 (07:10 +0000)]
Giaslas Georgios provided docs for CURLINFO_CONTENT_TYPE

22 years agoGeorg Horn the previous SSL_read() fix, this was actually the fix I did
Daniel Stenberg [Wed, 30 Jan 2002 21:49:29 +0000 (21:49 +0000)]
Georg Horn the previous SSL_read() fix, this was actually the fix I did
on my test machine! :-)

22 years agoI have too many ideas of what to mention in this docs
Daniel Stenberg [Wed, 30 Jan 2002 15:35:02 +0000 (15:35 +0000)]
I have too many ideas of what to mention in this docs

22 years agoGeorg Horn found yet another SSL reading problem caused by the non-blocks.
Daniel Stenberg [Wed, 30 Jan 2002 15:11:47 +0000 (15:11 +0000)]
Georg Horn found yet another SSL reading problem caused by the non-blocks.
This was a real bummer!

22 years agobig-time alert that this doesn't work
Daniel Stenberg [Wed, 30 Jan 2002 10:18:47 +0000 (10:18 +0000)]
big-time alert that this doesn't work

22 years agothe interface is simply called the "C" one these days
Daniel Stenberg [Wed, 30 Jan 2002 10:07:49 +0000 (10:07 +0000)]
the interface is simply called the "C" one these days

22 years agoextended the proxy chapter mucho
Daniel Stenberg [Wed, 30 Jan 2002 10:04:40 +0000 (10:04 +0000)]
extended the proxy chapter mucho

22 years agonow re-seed by force (even if already seeded) if a random file or egd socket
Daniel Stenberg [Wed, 30 Jan 2002 08:17:23 +0000 (08:17 +0000)]
now re-seed by force (even if already seeded) if a random file or egd socket
is given

22 years agoconn->upload_bufsize exists no more
Daniel Stenberg [Tue, 29 Jan 2002 20:34:30 +0000 (20:34 +0000)]
conn->upload_bufsize exists no more

22 years agoappend a CRLF pair after the content-type line
Daniel Stenberg [Tue, 29 Jan 2002 20:32:10 +0000 (20:32 +0000)]
append a CRLF pair after the content-type line

22 years agoremoved three loust fprintf()s
Daniel Stenberg [Tue, 29 Jan 2002 20:30:56 +0000 (20:30 +0000)]
removed three loust fprintf()s
removed the initial CRLF in the formpost, as they are part of the request
and should be written by the code in http.c!

22 years agoupload progress counter fix, removed the adjustable upload buffer size
Daniel Stenberg [Tue, 29 Jan 2002 20:28:59 +0000 (20:28 +0000)]
upload progress counter fix, removed the adjustable upload buffer size

22 years agono more adjustable upload buffer size, we use non-blocking sockets now so
Daniel Stenberg [Tue, 29 Jan 2002 20:28:26 +0000 (20:28 +0000)]
no more adjustable upload buffer size, we use non-blocking sockets now so
this work-around is not needed anymore!

22 years agonine items since 7.9.3
Daniel Stenberg [Tue, 29 Jan 2002 14:12:12 +0000 (14:12 +0000)]
nine items since 7.9.3

22 years ago- T. Bharath pointed out that we seed SSL on every connect, which is a time-
Daniel Stenberg [Tue, 29 Jan 2002 14:11:38 +0000 (14:11 +0000)]
- T. Bharath pointed out that we seed SSL on every connect, which is a time-
  consuming operation that should only be needed to do once. We patched
  libcurl to now only seed on the first connect when unseeded. The seeded
  status is global so it'll now only happen once during a program's life time.

22 years agobad tag
Daniel Stenberg [Tue, 29 Jan 2002 10:55:57 +0000 (10:55 +0000)]
bad tag

22 years agoGiaslas Georgios introduced CURLINFO_CONTENT_TYPE
Daniel Stenberg [Tue, 29 Jan 2002 10:49:32 +0000 (10:49 +0000)]
Giaslas Georgios introduced CURLINFO_CONTENT_TYPE

22 years agoSteve Marx helped us realize that we shouldn't treat customrequest as a
Daniel Stenberg [Mon, 28 Jan 2002 19:31:26 +0000 (19:31 +0000)]
Steve Marx helped us realize that we shouldn't treat customrequest as a
request of its own, it just changes the keyword of a request.

22 years agosomeone should have me punished, but this bug made curl bug seriously
Daniel Stenberg [Mon, 28 Jan 2002 19:23:18 +0000 (19:23 +0000)]
someone should have me punished, but this bug made curl bug seriously
on IPv4-linux machines

22 years agodon't count a custom request as a request type of its own, it is merely
Daniel Stenberg [Mon, 28 Jan 2002 19:22:40 +0000 (19:22 +0000)]
don't count a custom request as a request type of its own, it is merely
a modifier of another type

22 years agonewly generated
Daniel Stenberg [Mon, 28 Jan 2002 18:39:55 +0000 (18:39 +0000)]
newly generated

22 years agoAndreas Damm made it reentrant safe!
Daniel Stenberg [Mon, 28 Jan 2002 18:39:40 +0000 (18:39 +0000)]
Andreas Damm made it reentrant safe!

22 years agono longer add CRLF _after_ POST data, it should not be needed. Pedro Neves
Daniel Stenberg [Sun, 27 Jan 2002 11:51:11 +0000 (11:51 +0000)]
no longer add CRLF _after_ POST data, it should not be needed. Pedro Neves
pointed out this ugliness.

22 years agoset header and request size to 0 before each *_perform()
Daniel Stenberg [Sun, 27 Jan 2002 11:49:17 +0000 (11:49 +0000)]
set header and request size to 0 before each *_perform()

22 years agopostit.c is removed, it used the deprecated curl_formparse() and may
Daniel Stenberg [Fri, 25 Jan 2002 10:07:07 +0000 (10:07 +0000)]
postit.c is removed, it used the deprecated curl_formparse() and may
encourage people to use bad functions

22 years agobug report #508235 identified a non-working Location: following, and this
Daniel Stenberg [Fri, 25 Jan 2002 08:35:49 +0000 (08:35 +0000)]
bug report #508235 identified a non-working Location: following, and this
little fix seems to correct it. another case where we just returned and
didn't shut off the reading. This bug is introduced in 7.9.3 due to the
new internal "order".

22 years agodon't install the example programs! :-O
Daniel Stenberg [Thu, 24 Jan 2002 07:38:01 +0000 (07:38 +0000)]
don't install the example programs! :-O

22 years ago7.9.3
Daniel Stenberg [Wed, 23 Jan 2002 18:10:00 +0000 (18:10 +0000)]
7.9.3

22 years ago7.9.3 public
Daniel Stenberg [Wed, 23 Jan 2002 18:01:16 +0000 (18:01 +0000)]
7.9.3 public

22 years agoAndrés García found out that we didn't properly stop reading from a connection
Daniel Stenberg [Wed, 23 Jan 2002 07:15:32 +0000 (07:15 +0000)]
Andrés García found out that we didn't properly stop reading from a connection
after the headers on a HEAD request. This bug has been added in 7.9.3 and was
mnot present earlier.

22 years agomore about passwords and started about proxies
Daniel Stenberg [Tue, 22 Jan 2002 13:41:00 +0000 (13:41 +0000)]
more about passwords and started about proxies

22 years agoverify big files
Daniel Stenberg [Tue, 22 Jan 2002 13:10:16 +0000 (13:10 +0000)]
verify big files

22 years agominor edit
Daniel Stenberg [Tue, 22 Jan 2002 08:22:04 +0000 (08:22 +0000)]
minor edit

22 years agoadded --cc description and an example
Daniel Stenberg [Mon, 21 Jan 2002 14:57:07 +0000 (14:57 +0000)]
added --cc description and an example

22 years agopre4
Daniel Stenberg [Mon, 21 Jan 2002 12:11:45 +0000 (12:11 +0000)]
pre4

22 years agoHTTP POST explained
Daniel Stenberg [Mon, 21 Jan 2002 10:54:56 +0000 (10:54 +0000)]
HTTP POST explained

22 years ago#505514, as correctly pointed out by Antonio (anton@concord.ru), trying to
Daniel Stenberg [Sat, 19 Jan 2002 11:08:05 +0000 (11:08 +0000)]
#505514, as correctly pointed out by Antonio (anton@concord.ru), trying to
post a non-existing file should include nothing, not an error text!

22 years agomingw fix, mac os x fix, long long check removed from configure,
Daniel Stenberg [Fri, 18 Jan 2002 15:16:08 +0000 (15:16 +0000)]
mingw fix, mac os x fix, long long check removed from configure,
--enable-debug uses even stricter options now

22 years agonewly generated
Daniel Stenberg [Fri, 18 Jan 2002 15:14:35 +0000 (15:14 +0000)]
newly generated

22 years agoadded more text in the 'passwords' section
Daniel Stenberg [Fri, 18 Jan 2002 15:08:32 +0000 (15:08 +0000)]
added more text in the 'passwords' section

22 years ago satisfy gcc -Wundef
Daniel Stenberg [Fri, 18 Jan 2002 13:10:41 +0000 (13:10 +0000)]
 satisfy gcc -Wundef

22 years ago#if [undefined] => #ifdef [undefined]
Daniel Stenberg [Fri, 18 Jan 2002 13:04:48 +0000 (13:04 +0000)]
#if [undefined] => #ifdef [undefined]

22 years agoplaying with more strict gcc warnings with --enable-debug
Daniel Stenberg [Fri, 18 Jan 2002 13:00:13 +0000 (13:00 +0000)]
playing with more strict gcc warnings with --enable-debug

22 years agoprevents gcc -Wcast-align from complaining
Daniel Stenberg [Fri, 18 Jan 2002 12:59:33 +0000 (12:59 +0000)]
prevents gcc -Wcast-align from complaining

22 years agomade gcc -Wcast-align happy
Daniel Stenberg [Fri, 18 Jan 2002 12:56:10 +0000 (12:56 +0000)]
made gcc -Wcast-align happy

22 years ago#ifndef and #define magic to prevent compiler warnings when doing #if BLA
Daniel Stenberg [Fri, 18 Jan 2002 12:53:05 +0000 (12:53 +0000)]
#ifndef and #define magic to prevent compiler warnings when doing #if BLA
where BLA is undefined

22 years agoupdated to 2002 status ;-)
Daniel Stenberg [Fri, 18 Jan 2002 12:48:36 +0000 (12:48 +0000)]
updated to 2002 status ;-)

22 years agocut off a big piece of comment and added a pointer to the Trio web page
Daniel Stenberg [Fri, 18 Jan 2002 10:45:03 +0000 (10:45 +0000)]
cut off a big piece of comment and added a pointer to the Trio web page
should anyone ever want a good printf() clone

22 years agocommented out the 'long long' and 'long double' checks, as we don't really
Daniel Stenberg [Fri, 18 Jan 2002 10:43:55 +0000 (10:43 +0000)]
commented out the 'long long' and 'long double' checks, as we don't really
use them anyway and they cause warnings in lib/mprint.c

22 years agoI wish I could type. Anyway, this proved it is a good habit to put the NULL
Daniel Stenberg [Fri, 18 Jan 2002 10:36:25 +0000 (10:36 +0000)]
I wish I could type. Anyway, this proved it is a good habit to put the NULL
on the left side of comparisons...

22 years agoadded typecast for a malloc() return, and added check for NULL
Daniel Stenberg [Fri, 18 Jan 2002 10:30:51 +0000 (10:30 +0000)]
added typecast for a malloc() return, and added check for NULL

22 years agoAdded #include <errno.h>
Daniel Stenberg [Fri, 18 Jan 2002 09:25:58 +0000 (09:25 +0000)]
Added #include <errno.h>

22 years agoAndrés García patched. It now checks for EWOULDBLOCK properly on windows
Daniel Stenberg [Fri, 18 Jan 2002 08:03:54 +0000 (08:03 +0000)]
Andrés García patched. It now checks for EWOULDBLOCK properly on windows
boxes.

22 years agopatched by Andrés García
Daniel Stenberg [Fri, 18 Jan 2002 08:03:12 +0000 (08:03 +0000)]
patched by Andrés García

22 years ago7.9.3-pre3
Daniel Stenberg [Thu, 17 Jan 2002 14:34:26 +0000 (14:34 +0000)]
7.9.3-pre3

22 years agocorrect ssl version, fixed ssl writes, solved time-out disconnect without
Daniel Stenberg [Thu, 17 Jan 2002 14:25:49 +0000 (14:25 +0000)]
correct ssl version, fixed ssl writes, solved time-out disconnect without
text, fixed dns cache problem, made it compile with openssl before 0.9.5
again and extended libcurl-the-guide a bit more

22 years agomore text added
Daniel Stenberg [Thu, 17 Jan 2002 14:24:25 +0000 (14:24 +0000)]
more text added

22 years agoadded a comment about this example only works with 7.9.3 and newer libs
Daniel Stenberg [Thu, 17 Jan 2002 13:45:19 +0000 (13:45 +0000)]
added a comment about this example only works with 7.9.3 and newer libs

22 years agoRichard Archer made it compile and build with OpenSSL versions prior to
Daniel Stenberg [Thu, 17 Jan 2002 10:40:13 +0000 (10:40 +0000)]
Richard Archer made it compile and build with OpenSSL versions prior to
0.9.5

22 years agoinclude our own sprintf() prototype to make it return sensible data on
Daniel Stenberg [Thu, 17 Jan 2002 08:03:48 +0000 (08:03 +0000)]
include our own sprintf() prototype to make it return sensible data on
all platforms, I also edited a few data types slightly to prevent my
compiler from warning on comparisions between signed and unsigned values

22 years agoGet this working, still need to check for leaks and such, but should be
Sterling Hughes [Thu, 17 Jan 2002 07:38:25 +0000 (07:38 +0000)]
Get this working, still need to check for leaks and such, but should be
fine..

22 years agoMake the keys for hostcache entries be in the format::
Sterling Hughes [Thu, 17 Jan 2002 06:55:37 +0000 (06:55 +0000)]
Make the keys for hostcache entries be in the format::
host:port, so accessing curl.haxx.se on port 80 would yield a key value
of ::
curl.haxx.se:80

22 years agofilled-in text in the "Building" chapter and added a "libcurl with C++"
Daniel Stenberg [Thu, 17 Jan 2002 00:27:56 +0000 (00:27 +0000)]
filled-in text in the "Building" chapter and added a "libcurl with C++"
chapter

22 years agoSSL writes passed back a silly length...
Daniel Stenberg [Wed, 16 Jan 2002 23:28:58 +0000 (23:28 +0000)]
SSL writes passed back a silly length...

22 years agofixed time-out returned without error text set
Daniel Stenberg [Wed, 16 Jan 2002 22:26:01 +0000 (22:26 +0000)]
fixed time-out returned without error text set

22 years agoKevin Roth's SSLeay() patch, slight edited by me. Works with OpenSSL 0.9.5
Daniel Stenberg [Wed, 16 Jan 2002 17:45:08 +0000 (17:45 +0000)]
Kevin Roth's SSLeay() patch, slight edited by me. Works with OpenSSL 0.9.5
now.

22 years ago7.9.3-pre2
Daniel Stenberg [Wed, 16 Jan 2002 15:12:12 +0000 (15:12 +0000)]
7.9.3-pre2

22 years ago--cc and working non-blocking sockets uploads
Daniel Stenberg [Wed, 16 Jan 2002 15:04:37 +0000 (15:04 +0000)]
--cc and working non-blocking sockets uploads

22 years ago- shrunk the BUFSIZE define from 50K to 20K
Daniel Stenberg [Wed, 16 Jan 2002 14:53:19 +0000 (14:53 +0000)]
- shrunk the BUFSIZE define from 50K to 20K
- made a separate buffer for uploads (due to the non-blocking stuff)
- added two connectdata struct fields for non-blocking uploads

22 years agomodified to deal with the new non-blocking versions of Curl_read() and
Daniel Stenberg [Wed, 16 Jan 2002 14:50:53 +0000 (14:50 +0000)]
modified to deal with the new non-blocking versions of Curl_read() and
Curl_write().

22 years agoCurl_write's 5th argument now is signed
Daniel Stenberg [Wed, 16 Jan 2002 14:49:51 +0000 (14:49 +0000)]
Curl_write's 5th argument now is signed

22 years agoCurl_read() and Curl_write() are both now adjusted to return properly in
Daniel Stenberg [Wed, 16 Jan 2002 14:49:08 +0000 (14:49 +0000)]
Curl_read() and Curl_write() are both now adjusted to return properly in
cases where EWOULDBLOCK or equivalent is returned. We must not block.

22 years agoCurl_write() now takes a different 5th argument
Daniel Stenberg [Wed, 16 Jan 2002 14:47:50 +0000 (14:47 +0000)]
Curl_write() now takes a different 5th argument

22 years agoSomewhat ugly fix to deal with non-blocking sockets. We just loop and try
Daniel Stenberg [Wed, 16 Jan 2002 14:47:00 +0000 (14:47 +0000)]
Somewhat ugly fix to deal with non-blocking sockets. We just loop and try
again. THIS IS NOT A NICE FIX.

22 years agoSomewhat ugly fix to deal with non-blocking sockets. We just loop and try
Daniel Stenberg [Wed, 16 Jan 2002 14:46:00 +0000 (14:46 +0000)]
Somewhat ugly fix to deal with non-blocking sockets. We just loop and try
again. THIS IS NOT A NICE FIX. We should/must make a select() then and only
retry when we can write to the socket again.

22 years agoadded support for --cc to output the compiler name. This makes it possible
Daniel Stenberg [Wed, 16 Jan 2002 14:20:06 +0000 (14:20 +0000)]
added support for --cc to output the compiler name. This makes it possible
to compile libcurl stuff without any prior knowledge:

cc=`curl-config --cc`
cflags=`curl-config --cflags`
libs=`curl-config --libs`

$cc $flags $libs -o example example.c

Or if you prefer, the oh-so-cool single-line version:

`curl-config --cc --cflags --libs` -o example example.c

22 years agoadded a somewhat cool single-line command that builds most example sources
Daniel Stenberg [Wed, 16 Jan 2002 14:13:54 +0000 (14:13 +0000)]
added a somewhat cool single-line command that builds most example sources
on unix-like systems

22 years agoinitial attempt to write a tutorial-like libcurl guide
Daniel Stenberg [Tue, 15 Jan 2002 08:22:00 +0000 (08:22 +0000)]
initial attempt to write a tutorial-like libcurl guide

22 years agofixed non-blocking reads, fixed ssl sessions, in_addr_t and more non-blocking
Daniel Stenberg [Mon, 14 Jan 2002 23:32:57 +0000 (23:32 +0000)]
fixed non-blocking reads, fixed ssl sessions, in_addr_t and more non-blocking

22 years agoCurl_read() now returns a negative return code if EWOULDBLOCK or similar
Daniel Stenberg [Mon, 14 Jan 2002 23:14:59 +0000 (23:14 +0000)]
Curl_read() now returns a negative return code if EWOULDBLOCK or similar