curl-library
Bug: --form-string data malformed if split across transmit blocks
Date: Tue, 10 Jul 2018 09:55:09 -0700
Hello,
I have encountered a bug that seems to occur when using a command-line of
this form:
curl --trace-ascii D:\Local\CurlDebug\Curl.txt --ssl-reqd -F
"file=@C:\208kbfile.zip" --form-string json="{\"project\": \"MedChem\",
\"mapping_template\": \"7785\",\"runs\":{\"run_date\":
\"2018-07-05\",\"place\": \"QB\"}}" https://sevrer/apipage
When the transmit block boundary falls in the middle of the json string,
the transmit buffer pointer is not advanced correctly. Some data is
repeated, and the post is malformed.
See Screenshot for the relevant portion of the trace.
Thanks.
Scott
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html