You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ortwin Glück <or...@nose.ch> on 2002/08/21 19:00:29 UTC

[HttpClient] Re: HTTPS and PostMethod problem/bug

I can not try a POST but a GET works when I try (using JDK 1.4 and JSSE):

         try {
             HttpClient client = new HttpClient();
             client.startSession("www.verisign.com", 443, true);
             client.setSSLSocketFactory(null);
             HttpMethod method = new GetMethod("/");
             client.executeMethod(method);
             System.out.print(method.getResponseBodyAsString());
             client.endSession();
         } catch(Exception e) {
             e.printStackTrace();
         }

Please include "[HttpClient]" in front of the subject of further 
postings to this mailing list. The list is high traffic and is filtered 
by many people. So your posting may go unnoticed if you do not prefix 
the subject.

HTH

Odi
I am back to life from vacation

Tilak Mitra wrote:
> Hello,
>       I am trying to connect to a https site using the PostMethod to post
> some data and get the response back.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>