Wire log to Log4J logger.

2004-05-24 Thread John Melody

Is there a way to configure the wire log to go to a Log4J log configured
for the application.

I have configured Log4J as my application logger and I would like to send
the
Httpclient wire log to the same file. Currently it is set up as the
following -

System.setProperty(org.apache.commons.logging.simplelog.log.httpclient.wire
, debug);
which sends the wire log to the console.

Is it possible to configure this so that all the logging output including
the
wire log would go to my log4J application log?

thanks for any help,
regards, John.



John Melody
SyberNet Ltd.
Galway Business Park,
Dangan,
Galway.
Tel. No. +353 91 514400
Fax. NO. +353 91 514409
Mobile - 087-2345847


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



EasySSLProtocolSocketFactory for Secure and Proxied.

2004-03-25 Thread John Melody

Hi, 

I have just been trying to get my httpclient to accept a 
self signed certificate on a secure, proxied connection. I 
followed the SSL guide directions but it did not seem to be 
picking up my new factory. 

When I checked in the source code I noticed the following code. 

HttpConnection.java 

   // use the protocol's socket factory unless this is a secure
// proxied connection
final ProtocolSocketFactory socketFactory =
(isSecure()  isProxied()
? new DefaultProtocolSocketFactory()
: protocolInUse.getSocketFactory());

 

Why is this restiction in place? 

regards, 
John.  

John Melody 
SyberNet Ltd. 
Galway Business Park, 
Dangan, 
Galway. 
Tel. No. +353 91 514400 
Fax. NO. +353 91 514409 
Mobile - 087-2345847 

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



Httpclient + HTTPS + Proxy + BASIC Authentication

2004-03-24 Thread John Melody

Hi,

I have read the notes on the bug in Httpclient V2.0 to do with
using Basic Authentication with a HTTPS Url through a proxy.

One workaround proposed is to use preemptive authentication.

Are the credentials i.e. username, password sent unencrypted to the
target server when Preemptive Authentication is used even through the URL is
a https URL.

There are some notes about a PATCH being available for this problem.
If so, how do I get it - I am currently using HttpCLient V2.0. Can
this version be patched to fix the problem or must I move to a newer
version of httpclient to avail of the patch.

thanks for any help,
John.

regards,
John.
John Melody
SyberNet Ltd.
Galway Business Park,
Dangan,
Galway.
Tel. No. +353 91 514400
Fax. NO. +353 91 514409
Mobile - 087-2345847


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