Menu

#70 newlines in headers cause cURL to fail

None
closed-fixed
None
5
2015-05-31
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

  • Gene Wood

    Gene Wood - 2015-05-31

    Thanks for the bug report. Snoopy 2.0.0 no longer uses curl an instead uses openssl so all curl issues are now resolved.

    You can get the new version of Snoopy 2.0.0 here

     
  • Gene Wood

    Gene Wood - 2015-05-31
    • status: open --> closed-fixed
    • assigned_to: Gene Wood
    • Group: -->
     

Log in to post a comment.