Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#70 newlines in headers cause cURL to fail

open
nobody
None
5
2009-02-11
2009-02-11
Anonymous
No

When submitting an _httpsrequest(), Snoopy builds command-line arguments for curl. These have newlines in them.

A response is successfully received, but the file in which curl stores response headers is 0 bytes, and cannot be unlinked (on Windows, at least).

Line 998 in Snoopy 1.2.4 is:

$cmdline_params .= " -H \"".$safer_header."\"";

It should be

$cmdline_params .= " -H \"".trim($safer_header)."\"";

Discussion