Re: setRequestHeader, GetMethod, non-HTTP

2004-07-07 Thread Ortwin Glück
Is there a way to set non HTTP headers, i.e. if I set XYZ I want to receive XYZ on the server? I tried setting the headers using GetMethod class's setRequestHeader method. This is the way to go. Apparently I receive them as HTTP headers on the server (i.e.on setting XYZ I receive HTTP_XYZ on

SSL and server using self-signed certificate

2004-07-07 Thread Andre-John Mas
Hi, I have set up a Tomcat 4.1 server to use SSL, with the help of a self-certified certificate, ie with no trusted third party certifying it. I now try getting my client, which uses 'commons-httpclient-2.0-rc2' to connect. When I do, I get the following exception:

RE: SSL and server using self-signed certificate

2004-07-07 Thread Kalnichevski, Oleg
Andre This is a very common problem. Please consult 'Customizing SSL' section of the HttpClient SSL guide for details on how the problem can be resolved http://jakarta.apache.org/commons/httpclient/sslguide.html Oleg -Original Message- From: Andre-John Mas [mailto:[EMAIL PROTECTED]

Re: SSL and server using self-signed certificate

2004-07-07 Thread Eric Johnson
Andre, At a quick glance, it appears that there is one problem that I've experienced that the SSL guide doesn't seem to cover. Presumably, once you've created your self-certified certificate, you added it to your JVM's cacerts file using the keytool? I've found that a self-signed certificate

Re: SSL and server using self-signed certificate

2004-07-07 Thread Tim Wild
Further to earlier comments, here's the command line I use to import the cert into my keystore. You need to be in your JAVA_HOME/jre/lib/security directory when you run this command. keytool -import -trustcacerts -file certificat_name -keystore .\cacerts -alias alias-name Hope this helps. Tim

HttpClient and streaming xml out

2004-07-07 Thread Tim Wild
Hi all, We have the need to connect to a server and authenticate using client certificates, then stream an xml request out to it. I can do the client cert stuff, but can streaming out the xml be done with HttpClient? Our current code (without client cert support) is below. The other method

DO NOT REPLY [Bug 29636] - Setting different MAX_HOST_CONNECTION values per host using a single MultiThreadedHttpConnectionManager

2004-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29636. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: HttpClient and streaming xml out

2004-07-07 Thread Oleg Kalnichevski
Tim, HttpClient 2.0 supports a reverse model compared to HttpURLConnection. Instead of providing you with an output stream it can read the request body directly from an input stream and write it to the socket output stream for you

Re: SSL and server using self-signed certificate

2004-07-07 Thread Oleg Kalnichevski
Folks, The good thing about EasySSLProtocolSocketFactory is that its trust manager does not require a custom truststore at all. It basically trusts any certificate whose certificate chain contains only one entry, that is the certificate itself, and delegates the verification of all other

URL escaping

2004-07-07 Thread Steve Johnson
Hi All, Here is a URL that throws an exception if passed to GetMethod as is: throws something like invalid argument or uri. It appears to be the unescaped characters in /tr/cl/1,,TRAVELOCITY|987,00.html The problem is if the whole string is escaped then these escaped characters are double