cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Post a file to a URL

From: Will Weatherford <fiveweatherfords_at_gmail.com>
Date: Mon, 22 Oct 2007 19:59:53 -0400

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?

Thanks,

On 10/22/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> 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-23