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: curl post fails.

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 4 Oct 2022 16:13:23 +0200 (CEST)

On Tue, 4 Oct 2022, jian he via curl-library wrote:

> If the file is text, then all things would be pretty easy. However, if I
> upload a png file, Then the auto generated c code will not build and run
> again.

First: strings are capped in the --libcurl output. I only shows the 2000 first
characters.

Then: there's a bug in the string output generator that Patrick fixes here:

   https://github.com/curl/curl/pull/9643

The curl tool loads the file into a memory buffer and then points libcurl to
that.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-10-04