Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
--libcurl fails to reproduce binary data from --data-binary input that contains null bytes #6031
I did this
I came across this when I tried to convert a curl command line tool invocation into a corresponding libcurl program. The use case was to retrieve a time-stamp from a time-stamp server. The attached file is only for demonstration purposes and does not contain an actual time-stamp request. The file contains null bytes and is six bytes large:
curl command line tool invocation:
Note that the value supplied for
I expected the following
I expected that the string passed via
Curl built from commit 7920be9.
Windows 10 Version 2004, but also reproduced on Linux.