curl-users
(no subject)
Date: Thu, 18 Dec 2003 12:01:34 -0800
Hi, all.
I have trouble to post a form to servlet running on a website. It works
well if I uses browser. The command line is:
curl -i -m 60 -A "user agent" -d 'form data' -H 'Referer: referred_url'
-H 'Host: mysite.com:port' -H 'Connection: Keep-Alive' -H 'Cache-Control:
no-cache' -H 'Cookie: mycookie' -b "mycookie" -e 'referred_url'
https://mysite.com:port/myServlet
When I ran this command, I received the error messages:
HTTP/1.1 400 Bad Request
Date: Thu, 18 Dec 2003 19:41:24 GM
Message-ID: xxxxxx
Server: myserver
Cache-control: no-cache
Pragma: no-cache
Connection: close
content-type: text/html
<html> ... </html>
Could you please give me your precious advice? Do you think this command
line successfully pass all the headers to the servlet? It worked well when
I sent the exact same form data and header from browser .
David Zhang
Contractor
Verisign, Inc.
650-426-4533
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-18