https subsequent GET and POST requests

I try to create a dialog for an https client. First of ali I need to authenticate to get the subsequent pages. To authenticate I must retrieve a sessionid from the first screen. So what I try is:

...

HttpsURLconnect socket = (HttpsURLconnect)url.openConnect;

InputStream in = socket.getInputStream;

... ScreenScraping the HTML

socket.setDoOutput(true);

OutputStream out = socket.getOutputStream;// to do the POST

The last instruction fails, because I'm told that I'm not allowed for output after input (sorry, I'm not on my regular working place right now, so I can't paste the original messagetext). All samples I found right now, do a POST first and a GET afterwards; but this won't work here.

Ulrich

[762 byte] By [u005078a] at [2007-11-27 7:08:09]
# 1
Will move this question to the forum networking.
u005078a at 2007-7-12 18:59:37 > top of Java-index,Java Essentials,New To Java...