Daniel,

You are my hero! You identified the problem. Our library was appending CRLF to 
the token on Windows, making the header incorrect. I’ve been staring at that 
line in the logs feeling something wasn’t right, but not quite identifying the 
difference. Thanks!

/M

From: Daniel Stenberg <dan...@haxx.se>
Date: Wednesday, February 9, 2022 at 11:33 PM
To: Michael Ost via curl-library <curl-library@lists.haxx.se>
Cc: Michael Ost <michael....@avid.com>, Stephen Wilson 
<stephen.wil...@avid.com>, Kenley Malveaux <kenley.malve...@avid.com>
Subject: Re: POST with string body is failing on Windows
WARNING: EXTERNAL EMAIL

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<https://curl.se/support.html>
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to