curl / Mailing Lists / curl-library / Single Mail
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

From: Patrick Monnerat via curl-library <>
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 ?

Received on 2021-04-23