cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 7.10.3-pre4

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 9 Jan 2003 12:37:13 +0100 (MET)

On Thu, 9 Jan 2003, Philippe Raoult wrote:

> i've had two smallish issues, im not really sure they're worth opening a
> bug on sf.net:
> - base64_decode doesnt 0-terminate its output.

I don't think it is worth doing. The function may very well produce binary
results, so any user that assumes a zero byte as the end of data is doing bad
assumptions.

The code that currently use this function use the returned length.

(As we currently don't export this function to the world.)

> - when adding custom http headers with a curl_slist, one has to be very
> careful to strip any tailing "\r\n" because libcurl blindly adds them. This
> can result in hard-to-track bugs (headers being fed to curl but not really
> taken in account by the server).

I think we should add documentation for this, and not attempt to fix this
within libcurl. I'll happily apply any patches to the docs that clarifies
this issue.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-09