you can use socket to do this work, set some request headers, ie. Cookie: 
name=value, and then process the response headers, ie:Set-Cookie: name=value,....

on above, your servlet acts as a bridge or proxy for the request, am I all right?

-----------------------------------------------------------------
Frankie Wu, Senior Software Engineer
???, ???????
??? http://www.eachnet.com
Tel(O):86-21-52340871*635
Fax(0):86-21-32170096
E-mail:[EMAIL PROTECTED]
????????: 800-820-5217(????)

"Eachnet.com - CHINA'S LARGEST ON-LINE CONSUMER TRADING COMMUNITY
??? - ????????????????"

????:????????580?????1008?
??:200041
----- Original Message -----
From: "Mike Haberman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 11:24 PM
Subject: Sessions and Proxy Servlets


> Experts,
>
> I have a servlet that asks as a proxy.  You access it like
> http://myhost/myServlet?url="http://blah"
>
> the servlet then fetch's the url ("http://blah....")
> (using url.openStream().....)
>
> The problem is if the url is a servlet or cgi-bin script that
> uses session tracking, it dosesn't work.
>
> The getSession(true) method in the accessed servlet always returns
> a new session object.  But if you access the servlet directly it
> works fine.
>
> Is there some workaround?  Can I set some header value to make it
> work?
>
>
> Thanks for any input,
>
> mike haberman
> [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to