Yang Tse
d439830621
curl tool: fix some OOM handling - f4853db5
follow-up
2011-09-26 13:44:24 +02:00
Yang Tse
f4853db5e6
curl tool: fix some OOM handling
2011-09-26 13:07:34 +02:00
Yang Tse
d9f686db88
remove short-lived CURL_WRITEFUNC_OUT_OF_MEMORY
2011-09-26 13:05:42 +02:00
Guenter Knauf
a1087db5c6
Added unsigned char* to _curl_is_debug_cb.
2011-09-26 12:42:15 +02:00
Steve Holme
400055bfaa
smtp_connect: use defined buffer length for hostname
2011-09-26 00:01:09 +02:00
Steve Holme
5801ddb85c
Curl_ntlm_create_type3_message: Tidied up the use of Curl_gethostname.
...
Removed the code that striped off the domain name when Curl_gethostname
returned the fully qualified domain name as the function has been
updated to return the un-qualified host name.
Replaced the use of HOSTNAME_MAX as the size of the buffer in the call
to Curl_gethostname with sizeof(host) as this is safer should the buffer
size ever be changed.
2011-09-25 23:59:53 +02:00
Steve Holme
38b5744266
HOSTNAME_MAX: Moved to curl_gethostname.h
...
Moved HOSTNAME_MAX #define into curl_gethostname.h rather than being
locally defined in curl_gethostname.c, curl_ntlm_msgs.c and smtp.c.
2011-09-25 23:58:47 +02:00
Daniel Stenberg
bc28a35dbc
RELEASE-NOTES: synced with d2a47021c0
2011-09-25 23:20:46 +02:00
Yang Tse
d2a47021c0
Q&D fix header inclusion order
2011-09-25 19:08:12 +02:00
Yang Tse
119f43360b
allow write callbacks to indicate OOM to libcurl
...
Allow (*curl_write_callback) write callbacks to return
CURL_WRITEFUNC_OUT_OF_MEMORY to properly indicate libcurl of OOM conditions
inside the callback itself.
2011-09-25 19:05:46 +02:00
Guenter Knauf
e276802ff8
Changed some main makefile targets.
2011-09-25 17:43:50 +02:00
Daniel Stenberg
2d6796aac5
curl_multi_fdset: avoid FD_SET out of bounds
...
If a socket is larger than FD_SETSIZE, avoid using FD_SET() on the
platforms where this is possible.
Bug: http://curl.haxx.se/bug/view.cgi?id=3413274
Reported by: Tim Starling
2011-09-25 17:34:12 +02:00
Guenter Knauf
bb94b92894
Fixed MinGW examples makefile.
2011-09-25 16:31:31 +02:00
Guenter Knauf
230459dd00
NetWare makefile tweaks to select different builds.
2011-09-25 16:29:08 +02:00
Daniel Stenberg
745014b726
POST: always set postfieldsize
...
When we use binary posts and regular ones intermixed on a single command
line, we cannot do strlen() etc on the data to figure out the length
(when inserting '&' and more). We must therefore keep track of the post
data length. Then we also end up setting the libcurl option with the
known size, so that we don't risk that libcurl will do strlen() on the
data.
This has the minor side-effect that --libcurl source codes now always
will use CURLOPT_POSTFIELDSIZE but I don't consider that terribly
damaging.
Bug: http://curl.haxx.se/bug/view.cgi?id=3413181
Reported by: Taneli Vhkangas
2011-09-25 00:02:58 +02:00
Yang Tse
b3ea4881a8
curl tool: fix a compiler warning
2011-09-24 18:33:59 +02:00
Yang Tse
c6702c7d3f
curl tool: reviewed code moved to tool_*.[ch] files
2011-09-24 17:40:46 +02:00
Guenter Knauf
8bab6700d9
Added header to be included by dist script.
...
Probably the wrong place, but I dont know better.
2011-09-24 15:06:21 +02:00
Yang Tse
081e289315
curl tool: fix some OOM handling issues
2011-09-24 05:33:41 +02:00
Daniel Stenberg
5f0764870f
http header: allow Content-Length to be replaced
...
In some cases Content-Length: couldn't be replaced by an application
Also, indented some code properly
2011-09-24 00:05:58 +02:00
Guenter Knauf
87a45c7998
MinGW64 has this prototype already.
2011-09-23 03:56:34 +02:00
Guenter Knauf
dafa2fc944
Fixed scanf format for WORD = unsigned short.
2011-09-23 03:21:50 +02:00
Guenter Knauf
ef3f1f3146
Added Win32-only samples.
2011-09-23 03:00:32 +02:00
Guenter Knauf
ba52e0a93b
Added a workaround for printing size_t.
2011-09-23 02:16:20 +02:00
Daniel Stenberg
40c27e299f
Curl_pgrsStartNow: keep HEADERS_OUT set
...
To avoid that the progress meter headers get output between each
transfer, make sure the bits gets kept when (re-)inited.
Reported by: Christopher Stone
2011-09-22 22:41:06 +02:00
Yang Tse
fa775b56de
curl tool: fix some OOM handling issues
2011-09-22 21:21:21 +02:00
Yang Tse
fb3845a438
curl tool: reviewed code moved to tool_*.[ch] files
...
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result.
Fixed some OOM handling issues.
2011-09-22 21:21:20 +02:00
Guenter Knauf
3c3aa09c65
Added NetWare examples makefile.
2011-09-22 14:35:49 +02:00
Yang Tse
01c172f5e8
NTLM_WB: fix disabling of NTLM_WB when NTLM is disabled
2011-09-22 00:24:02 +02:00
Daniel Stenberg
e9cf4cb791
test 814: smtp without --mail-from
...
Verifies the fix from commit 322f3d5af7
2011-09-21 22:32:27 +02:00
Gisle Vanem
322f3d5af7
smtp: without a MAIL_FROM, send blank MAIL FROM
...
I think curl should ignore this case and smtp.c should test for this.
Since RFC-2821 seems to allow a "null reverse-path". Ref. "MAIL
FROM:<>" in section 3.7, page 25.
2011-09-21 22:24:45 +02:00
Dave Reisner
c1057fc9aa
lib/http: add missing whitespace in verbose output
...
Example:
* upload completely sent off: 35out of 35 bytes
Should be:
* upload completely sent off: 35 out of 35 bytes
2011-09-21 22:19:53 +02:00
Guenter Knauf
62b0fdca9e
Another MinGW example makefile tweak.
2011-09-21 18:21:05 +02:00
Guenter Knauf
3317160c19
Fixed sample to compile for Windows platform.
2011-09-21 18:09:34 +02:00
Yang Tse
28526ed6e0
curl tool: make my_setopt ignore curl_easy_setopt result again.
...
Related code not ready yet for this kind of checks.
2011-09-21 04:30:08 +02:00
Guenter Knauf
e4172d934d
Changed suffix rules to pattern rules.
...
Suffix rules cannot have any prerequisites of their own.
2011-09-21 03:25:19 +02:00
Guenter Knauf
977825a68c
Added dependency so that curlbuild.h is created.
2011-09-21 02:13:18 +02:00
Guenter Knauf
a6b69b64ad
Some more MinGW build tweaks.
...
Added envvars to specify OpenSSL include, libpath and lib.
Added rule to create curlbuild.h from curlbuild.h.dist.
2011-09-21 02:06:05 +02:00
Yang Tse
9ecf53e154
curl tool: reviewed code moved to tool_*.[ch] files
...
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result.
Fixed some OOM handling issues.
2011-09-21 01:54:14 +02:00
Yang Tse
84221006c9
curl tool: reviewed code moved to tool_*.[ch] files
...
Overhauled FindWin32CACert()
2011-09-20 15:59:19 +02:00
Guenter Knauf
a6c168b893
A bunch of MinGW build tweaks.
...
All paths to dependencies now quoted; synced examples makefile.
2011-09-20 15:05:28 +02:00
Guenter Knauf
dee7a08f64
Changed Windows 64bit OS define to x86_64.
...
Also added check for __x86_64__ define since MinGW64 seems to define
the _M_X64 macro through a header not available for config-win32.h.
2011-09-20 12:32:04 +02:00
Guenter Knauf
cd3cf55b47
Also skip certs masked as CKT_NSS_TRUST_UNKNOWN.
...
Fix posted by Tomas Hoger <thoger redhat com>.
2011-09-20 12:05:31 +02:00
Guenter Knauf
98a61d8e2e
Added _WIN32_WINNT define for IPv6 builds.
2011-09-20 11:59:49 +02:00
Daniel Stenberg
81b41095ef
Curl_follow: handle redirects to "//hostname/path"
2011-09-20 11:16:40 +02:00
Yang Tse
49c35a7f9f
curl tool: truly fix compiler warning
2011-09-19 20:27:25 +02:00
Yang Tse
57119495da
curl tool: fix compiler warning
2011-09-19 19:45:58 +02:00
Yang Tse
fdecb56cbf
curl tool: reviewed code moved to tool_*.[ch] files
2011-09-19 18:18:17 +02:00
Daniel Stenberg
00532341b5
CURLOPT_URL docs: no need to mention function names
2011-09-18 23:42:29 +02:00
Steve Holme
dae0b7d1aa
CURLOPT_URL: Expanded URL description
...
Expanded the section about CURLOPT_URL to include the format of the URL
and detailed information and examples relating to specific protocols.
2011-09-18 23:38:08 +02:00