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 with string body is failing on Windows

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 10 Feb 2022 08:23:50 +0100 (CET)

On Thu, 10 Feb 2022, Michael Ost via curl-library wrote:

> Accept-Encoding: identity
> Authorization: Bearer MDA***********************
>
> User-Agent: avid-ptc-google-analytics
> Content-type: text/plain
> Content-Length: 522

Based on the little gap there, I assume that the Bearer token you pass in has
a trailng newline, which makes the outgoing request "broken". The
Content-Length ends up on the other side of the first crlf+crlf and thus isn't
seen by the server.

-- 
  / 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.haxx.se/mail/etiquette.html
Received on 2022-02-10