Java - Creating a httprequest the uses the header information from previous request

Posted by PCBEEF on Stack Overflow See other posts from Stack Overflow or by PCBEEF
Published on 2010-03-17T01:37:47Z Indexed on 2010/03/17 1:41 UTC
Read the original article Hit count: 484

Filed under:
|
|

I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class

That works fine. It sets the relevant headers in the response. However, what if I wanted to visit another url on the same site with those headers? If I create another URL object the session is lost. How do I maintain the session?

© Stack Overflow or respective owner

Related posts about java

Related posts about url