> -----Original Message-----
> From: Donald Ball [mailto:[EMAIL PROTECTED]]
> 
> 1. i use the httpclient object. why is it necessary or desirable to
> manually open and close a session to each individual web server?

Why? historical reasons, mostly.  Take a look at the new HttpMultiClient
class in the latest nightly build and see if that fits your needs better.
If your doing most of your commuications with a single host then HttpClient
works fine.  If you need to talk with multiple hosts, then HttpMultiClient
and the related UrlMethods may work better.
 
> 2. when i do close a session to a web server and then later open up a
> session to that server again (using the same httpclient), is my state
> preserved?

Yes.
 
> 3. is there any way to set the User-Agent string for an httpclient?

Nope, but this has come up before.  If there isn't one already, add an
enhancement request to the Bugzilla database so we don't forget.
 
> 4. is the httpclient object threadsafe? that is to say, can i have
> several threads calling executeMethod simultaneously?

No.  HttpMultiClient is.
 
> - donald
> 


Marc Saegesser 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to