Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: POST Request with non-null-terminated string
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 23 Apr 2021 17:17:29 +0200
On 4/23/21 5:02 PM, Milen Nikolov via curl-library wrote:
> the curl function (CURLOPT_POSTFIELDS) takes as argument a c-string.
> In my string there are also NUL characters, which have to be sent.
> When I try sending the request the body is truncated at the first NUL
> chararcter.
Did you try https://curl.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html ?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-04-23
Date: Fri, 23 Apr 2021 17:17:29 +0200
On 4/23/21 5:02 PM, Milen Nikolov via curl-library wrote:
> the curl function (CURLOPT_POSTFIELDS) takes as argument a c-string.
> In my string there are also NUL characters, which have to be sent.
> When I try sending the request the body is truncated at the first NUL
> chararcter.
Did you try https://curl.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html ?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-04-23