curl-users
curl https -F
Date: Tue, 12 Feb 2008 14:39:31 +0000
Hi Everyone,
Im new here and to cURL.
I am trying to use cURL to upload a file to a local https server using a form.
<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>
when i use the command
curl -k https://127.0.0.1:5002/arx/import -u username:password -F "upfile=@c:\curl\test.xml" -F "submit=Upload"
I get the error
<html><head><title>Error 500 Content is not allowed in prolog.</title></head><body><h2>HTTP ERROR: 500</h2><pre>Content is not allowed in prolog.</pre><p>RequestURI=/arx/import</p><p><i><small>Powered by Jetty://</small></i></p>
What am i doing wrong????
Thanks in advance for your help.
Kind Regards
Nick
_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox.
http://www.searchgamesbox.com
Received on 2008-02-12