cURL / Mailing Lists / curl-users / Single Mail

curl-users

HTTP Post & Tomcat J2EE Server

From: akede <alex.kempkens_at_gmail.com>
Date: Mon, 22 Nov 2004 22:40:07 +0100

Hey,

I have a wired effect that a "standard" post is not correctly
interpretered by an Tomcat J2EE Server.

The szenario is like:

The server I want to control is a Tomcat J2EE Server running a certain Servlet.

The first result I get from the server is the login page with some
fields - nothing special except that there is an input field "loginid"
with value=server.name#<id>

where <id> is a numeric value.

Also the server is providing a jsession id which is added to all img
scr attributes with a ';' .

The wired thing is that when I read the whole result I get from a curl
request to the server (result is the login page) and reproduce the
login form I can submit the form to the Tomcat server and everything
is fine.

When I try to send the POST via the curl -d option the server doesn't
really understand what I'm sending and reacts like I would have
pressed the "return" key on my keyboard instead of clicking the submit
image button.

Someone understood what I'm saying ;-/? Any ideas?

Thx in advanvced

Alex
Received on 2004-11-22