cURL / Mailing Lists / curl-users / Single Mail

curl-users

Need help!

From: Zhang, David <DZhang_at_verisign.com>
Date: Mon, 15 Dec 2003 12:40:38 -0800

Hi, experts:

 

I have a problem while trying to pass data to a Java servlet running on a
webserver. The programs written in java worked well with the same HTTP
header and HTTP content. We guess that we might not use the -H option in
Curl correctly. Could you please help me to solve this problem? The
following is the command line I used:

 

Curl -H 'POST /myServlet HTTP/1.1 User-Agent: Java1.3.0 Host:
myWebsite.com:80 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*;
q=.2 Connection: keep-alive Content-type: application/x-www-form-urlencoded
Content-length: 256 -d 'data' http://myWebsite.com/myServlet:80

 

I used -A option by cutting the 'User-Agent: Java1.3.0' from the HTTP header
but it still didn't work.

 

Please reply this message ASAP.

 

Thank you very much.

 

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-15