aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes how did java.net.*   package deal with session? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how did java.net.*   package deal with session?" Watch "how did java.net.*   package deal with session?" New topic
Author

how did java.net.* package deal with session?

charles liu
Greenhorn

Joined: Mar 02, 2003
Posts: 3
i want to write some program to simulate user browsing the website using IE,for example, yahoo
didnot provide the pop3 service,so the user must input the username and password in IE to retrieve the email in the yahoo email box. i have passed the yahoo authentication by providing the username and password in the program ,but i cannot after login in,i found i cannot access the other infomation in the program and some error message displayed:
"The requested URL could not be retrieved
Access control configuration prevents your request frombeing allowed at this time. Please contact your service provider if you feel this is incorrect".
i think maybe there is something wrong with the session.
I greatly appreciate your timely help,please.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi charles,
As far as I know, there is no way to handle sessions in the java.net package. That requires the J2EE package javax.servlet.http which will probably not help you with this anyway. What exactly are you doing? Are you opening a connection to yahoo with a Socket and then POSTing or GETing thru the Socket's output stream? Give us a little more info and maybe we can steer you in the right direction.
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
charles liu
Greenhorn

Joined: Mar 02, 2003
Posts: 3
thank you,Michael .
i'm using an package HTTPClient which is licenced under the GNU Lesser General Public License (LGPL) .
maybe the author of HTTPClient didnot provide the function of handing session. so ,when i write some program using the package HTTPClient to access some website,after i have logon this website,i cannot access the related infomation which need the session(maybe it contained the user info).
maybe there is something usefull in j2ee package.
charles liu
Greenhorn

Joined: Mar 02, 2003
Posts: 3
Are you opening a connection to yahoo with a Socket and then POSTing or GETing thru the Socket's output stream?
Yes,That's what i'm doing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how did java.net.* package deal with session?
 
Similar Threads
Cannot Access Yahoo Email with IE
Email Host Configuration Problem
CookieSSO - Not working
How to login on my site when user is already logged in in Yahoo mail ?
Conditional Redirecting using JSP