curl-users
Re: changing content-type of uploading file
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Mar 2003 13:08:41 +0100 (CET)
Date: Tue, 11 Mar 2003 13:08:41 +0100 (CET)
On Mon, 10 Mar 2003, Tomas Kouba wrote:
> i would like to fill up a html form so I use -F option.
> One of the form's items is a file input.
> My problem is that I cannot specify content-type of this file.
You mean you don't know how to do it or that it doesn't work?
> Is it possible to do this with curl ? Or some kind of -H header ?
Did you try reading the manual? curl -M outputs a huge blurb and it includes
examples where -F is used when setting content-type.
Example:
curl -F "coolfiles=@fil1.gif;type=image/gif" [URL]
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2003-03-11