cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Post a file to a URL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Oct 2007 11:11:08 +0200 (CEST)

On Thu, 18 Oct 2007, Will Weatherford wrote:

> I am trying to post a file to a URL (hosted by a printer) via cURL.
> When I do it through FireFox with HTTPHeadaers on I get:

[...]

> Content-Type: multipart/form-data; boundary=---------------------------19074277212554
> Content-Length: 253
> -----------------------------19074277212554

> "C:\Boeing\curl.exe" --max-time 6 -F
> input_file=@"C:\Boeing\V34True.ucf;type=multipart/form-data"
> http://157.184.31.21/cgi-bin/dynamic/config/secure/importsettings.html
> "C:\Boeing\V34TrueUCFOutput.txt"

First, your type= seems totally wrong. But otherwise I can't see why curl
can't connect to the same server your browser can.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-10-22