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: Content-Type (charset) formatting

From: Dan Fandrich via curl-library <curl-library_at_cool.haxx.se>
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