cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl -F didn't upload file but return the form itself

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Apr 2006 23:27:31 +0200 (CEST)

On Thu, 6 Apr 2006, xi chum wrote:

> /usr/bin/curl -F "xmlfile=@101.xml" http://localhost:8080/test/upload.html

I would say that it is highly unlikely that you send any upload to a HTML
file. Normally you send it to some kind of script/CGI that receives it.

That HTML file most probably contains a <form> and that has an action
attribute pointing out the correct URL you actually want for this.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-04-05