cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Post a file to a URL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 23 Oct 2007 10:14:06 +0200 (CEST)

On Mon, 22 Oct 2007, Will Weatherford wrote:

> If this would be totally wrong:
>
> "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"
>
> What would be correct?

Drop the type= part, as that's very unlikely what you want. But as I said,
that doesn't explain your connection problems. I would assume a line like
this:

   curl -F input_file=@C:\Boeing\V34True.ucf
   http://157.184.31.21/cgi-bin/dynamic/config/secure/importsettings.html

(on a single line)

But then it does look strange that you send the POST to a HTML page...

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