curl-users
Re: curl https -F
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Feb 2008 22:13:00 +0100 (CET)
Date: Tue, 12 Feb 2008 22:13:00 +0100 (CET)
On Tue, 12 Feb 2008, Project Mayhem wrote:
> <html><header><title>XML import</title></header><body><form method="post"
> enctype="multipart/form-data" action="import">File to upload: <input
> type="file" name="upfile"><br><br><input type="submit"
> value="Upload"></form></body></html>
>
> curl -k https://127.0.0.1:5002/arx/import -u username:password -F
> "upfile=@c:\curl\test.xml" -F "submit=Upload"
The second -F is not needed as the form doesn't set a name in that input and
thus a browser won't sent that field that way.
If that's not enough, I suggest using LiveHTTPHeaders and --trace-ascii to
track down and minimize request differences.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-02-12