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:
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
CURLOPT_POSTFIELDSIZE_LARGE
does not match the length of the data supplied viaCURLOPT_POSTFIELDS
.I expected the following
I expected that the string passed via
CURLOPT_POSTFIELDS
contains the full data from the input file, e.g.:curl/libcurl version
Curl built from commit 7920be9.
operating system
Windows 10 Version 2004, but also reproduced on Linux.
The text was updated successfully, but these errors were encountered: