Accept Cookies inside Java code ?

Posted by yox on Stack Overflow See other posts from Stack Overflow or by yox
Published on 2010-05-08T21:54:33Z Indexed on 2010/05/08 21:58 UTC
Read the original article Hit count: 229

Filed under:
|
|

Hi,

I'm dealing with a HTTP sockets project, I have to send 2 HTTP GET requests from my java code like this :

  • Request 1 : call page X
  • Page X is setting a cookie.
  • Request 2 : call to page Y

as you see to access the content of page Y i cookie must be present...

how to accept a cookie from java code please ?

© Stack Overflow or respective owner

Related posts about java

Related posts about cookie