Re: Content-Type (charset) formatting
Date: Sun, 24 May 2020 21:39:01 +0200
On Sun, May 24, 2020 at 08:32:46PM +0200, Mark Windshield via curl-library wrote:
> I was changing curl a little to integrate as request library into one of our
> projects, and then realized that the Content-Type by default is "text/html;
> charset=UTF-8", while this isn't a problem in most cases it is recommended by
> https://tools.ietf.org/html/rfc7231#section-3.1.1.1 to use "text/html;charset=
> utf-8", now I looked in the curl source what exactly I would have to change to
> change the charset to lower-case, but couldn't find it. Does anyone have an
> idea what I would have to change to achieve that?
Content-Type: is set by the server, not the client. libcurl will pass it on to
the application as it's received.
Dan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-24