curl-users
Re: Question on sending gzip file via HTTPS
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Jun 2007 22:06:46 +0200 (CEST)
Date: Mon, 4 Jun 2007 22:06:46 +0200 (CEST)
On Mon, 4 Jun 2007, Dan Fandrich wrote:
> However, this doesn't look right. The ;type= suffix needs to be on the
> actual data file parameter, i.e. "Filecontents" in this case, not on the
> file name parameter "documentname", otherwise curl will use its default
> content-type handling on the actual file contents (which is probably
> text/plain).
Recent curl versions default to application/octet-stream for those parts that
don't match one of the built-in known extensions (.gif, .jpg. .jpeg, .txt and
.html).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-06-04