fix POST data not working without string literals

https://curl.se/libcurl/c/curl_easy_setopt.html

Strings passed to libcurl as 'char *' arguments, are copied by the library; the string storage associated to the pointer argument may be discarded or reused after curl_easy_setopt returns. The only exception to this rule is really CURLOPT_POSTFIELDS
This commit is contained in:
tankorsmash 2025-03-16 12:18:34 -04:00
parent d30021db16
commit b291110ffa
3 changed files with 3 additions and 2 deletions

View file

@ -62,6 +62,7 @@ curlOptions←{
# long integer options
postfieldsize60 # size of the POST input data
copypostfields10165 # copy POST input data
timeout78 # timeout in seconds
timeoutms155 # timeout in milliseconds