You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by zhang99 <se...@yahoo.com> on 2009/07/06 10:51:07 UTC

stateful httpclient call in servlet



pseudo code

service(..){


//httpclient get http://www.facebook.com


}

the above is pseudo code for java servlet, when user call this servlet
service(..) from browser repeatly

for instance
1. call http://localhost:8080/callService?url=facebook.com/index.php
2. call http://localhost:8080/callService?url=facebook.com/editprofile.php

can these subsequent request using the same "session" ?

any example demo on this?
-- 
View this message in context: http://www.nabble.com/stateful-httpclient-call-in-servlet-tp24351881p24351881.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: stateful httpclient call in servlet

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, Jul 06, 2009 at 01:51:07AM -0700, zhang99 wrote:
> 
> 
> 
> pseudo code
> 
> service(..){
> 
> 
> //httpclient get http://www.facebook.com
> 
> 
> }
> 
> the above is pseudo code for java servlet, when user call this servlet
> service(..) from browser repeatly
> 
> for instance
> 1. call http://localhost:8080/callService?url=facebook.com/index.php
> 2. call http://localhost:8080/callService?url=facebook.com/editprofile.php
> 
> can these subsequent request using the same "session" ?
> 
> any example demo on this?


See section on HTTP state management:

http://wiki.apache.org/HttpComponents/HttpClientTutorial

Oleg

> -- 
> View this message in context: http://www.nabble.com/stateful-httpclient-call-in-servlet-tp24351881p24351881.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org