Fwd: Try to Login

Hi all!

I use the jigsaw api to login into a site.
But if I try to request the server I get 
the following error:

Unable to contact target server www.mercedes-benz.de:80 after 1 tries

My sample code looks like this:

Request request = manager.createRequest();
String postdata=?username=USER&password=PASSWORD&btnSubmit=anmelden";
request.setMethod("POST");
request.setOutputStream(new StringBufferInputStream(postdata));
request.setContentLength(postdata.length());
request.setURL(new URL("http://www.mercedes-benz.de/portal"));
request.setUserAgent(USER_AGENT);
try{
     reply = manager.runRequest(request);
}catch(Exception ex){
		 System.out.println(ex.getMessage());
}

What I am doing wrong?

Thanks for any Help!!

Cheers!

Gregory



-- 
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl

Received on Friday, 18 June 2004 06:49:42 UTC