curl-library
Re: POST binary data content-type
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Mar 2016 00:02:57 +0100 (CET)
Date: Fri, 11 Mar 2016 00:02:57 +0100 (CET)
On Wed, 9 Mar 2016, Dave S wrote:
> I noticed that using --data-binary the curl command is also very slow, and
> the --verbose reveals
>
> "Content-Type: application/x-www-form-urlencoded"
>
> Shouldn't this be something like
>
> "Content-Type: application/binary" ?
Maybe. We use the application/x-www-form-urlencoded type since forever since
that's the content-type browsers use for normal form posts. You can easily
change that if you need to. However in my experience, most server setups don't
really care what the Content-Type is set to.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-03-11