Thanks for the reply.
                                                                           
                                                                           
                                                                           
 Stefan Fischerfeier                                                       
 Accenture GmbH                                                            
 Maximilianstra�e 35                                                       
 D-80539 M�nchen                                                           
 Financial Services                                                        
 Telefon +49 89 93081-68644                                                
 Telefax +49 6173 94-48644                                                 
 (Octel, Global VPN: 46/68644)                                             
 [EMAIL PROTECTED]                                         
                                                                           





                                                                                       
                                                 
              "Waldhoff, Rodney"                                                       
                                                 
              <[EMAIL PROTECTED]         To:      
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>          
              om>                               cc:      
"'[EMAIL PROTECTED] '" <[EMAIL PROTECTED]>     
                                                Subject: RE: Jakarta-HttpClient        
                                                 
              23.08.02 16:56                                                           
                                                 
                                                                                       
                                                 
                                                                                       
                                                 



This is a good question for commons-user, but I'll take a pass at it.


Credentials are part of the HttpState object, the constructors that accept
credentials are just  a convience mechanism (and probably there for
backwards compatiablity).


Another way to do this is to create your own HttpState, set it up with the
Credentials, and add it to your HttpClient instance.  E.g., using,


 HttpState.setCredentials(realm,credentials);


 HttpClient.startSession(host,port,proxyHost,proxyPort);


and


 HttpClient.setState(HttpState)


The order in which you invoke startSession and setState may be important, I
don't recall offhand.





-----Original Message-----
From: [EMAIL PROTECTED]
Sent: 8/23/2002 8:58 AM
Subject: Jakarta-HttpClient


Hi,


I want to establish a http connection to a host with credentials via a
proxy server.
In the API doc of the class HttpClient I found several
startSession-methods
but no one with the parameters like:


startSession(java.lang.String host, int port, java.lang.String
proxyhost,
int proxyport, Credentials creds)


Which method should I use for my problem?


regards Stefan






This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.


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

Reply via email to