Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
charles liu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
charles liu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic