curl / Mailing Lists / curl-users / 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: Different response content-type when including -I

From: Dan Fandrich via curl-users <>
Date: Wed, 8 Jan 2020 16:49:50 +0100

On Wed, Jan 08, 2020 at 04:08:43PM +0100, Toon Claes via curl-users wrote:
> So I'd like to understand why when including `-I` I'm getting
> 'content-type: image/png', even while 'accept: */*' is in the request?

That's a question to ask the administrator of the server. The HTTP spec says
"The server SHOULD send the same header fields in response to a HEAD request as
it would have sent if the request had been a GET..." so it's doing something
weird, if not technically illegal.

Received on 2020-01-08