From httpclient-user-returnkelly04@example.net Fri Oct 22 23:14:06 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 58940 invoked from network); 22 Oct 2004 23:14:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 22 Oct 2004 23:14:06 -0000 Received: (qmail 81628 invoked by uid 500); 22 Oct 2004 23:14:06 -0000 Delivered-To: kelly04@example.net Received: (qmail 81611 invoked by uid 500); 22 Oct 2004 23:14:06 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 81598 invoked by uid 99); 22 Oct 2004 23:14:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO cerberus.wingsofhermes.org) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 22 Oct 2004 16:14:05 -0700 Received: (qmail 5023 invoked by uid 1008); 22 Oct 2004 23:14:03 -0000 Received: from 83.161.120.155 by cerberus.wingsofhermes.org (envelope-from <kelly04@example.net>, uid 1002) with qmail-scanner-1.23 (clamdscan: 0.75.1. spamassassin: 3.0.0. Clear:RC:1(83.161.120.155):. Processed in 0.079441 secs); 22 Oct 2004 23:14:03 -0000 Received: from unknown (HELO ?83.161.120.155?) (83.161.120.155) by 0 with SMTP; 22 Oct 2004 23:14:02 -0000 Message-ID: <kelly04@example.net> Date: Sat, 23 Oct 2004 09:14:02 +1000 From: Berin Lautenbach <kelly04@example.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: kelly04@example.net Subject: test Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N A test to see if archiving works --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Sat Oct 23 15:15:57 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 81144 invoked from network); 23 Oct 2004 15:15:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 23 Oct 2004 15:15:57 -0000 Received: (qmail 55837 invoked by uid 500); 23 Oct 2004 15:15:57 -0000 Delivered-To: kelly04@example.net Received: (qmail 55825 invoked by uid 500); 23 Oct 2004 15:15:57 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Delivered-To: moderator for kelly04@example.net Received: (qmail 42483 invoked by uid 99); 23 Oct 2004 14:57:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: <kelly04@example.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: kelly04@example.net From: Michael Becke <kelly04@example.net> Subject: Test Date: Sat, 23 Oct 2004 10:57:31 -0400 X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a test. --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Tue Oct 26 20:52:09 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 9168 invoked from network); 26 Oct 2004 20:52:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 26 Oct 2004 20:52:08 -0000 Received: (qmail 67401 invoked by uid 500); 26 Oct 2004 20:52:08 -0000 Delivered-To: kelly04@example.net Received: (qmail 67385 invoked by uid 500); 26 Oct 2004 20:52:08 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 67372 invoked by uid 99); 26 Oct 2004 20:52:08 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO web51510.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 26 Oct 2004 13:52:08 -0700 Message-ID: <kelly04@example.net> Received: from [83.161.120.155] by web51510.mail.yahoo.com via HTTP; Tue, 26 Oct 2004 13:52:06 PDT Date: Tue, 26 Oct 2004 13:52:06 -0700 (PDT) From: Mike Y <kelly04@example.net> Subject: very simple problem... how to post data to an HttpConnection... To: kelly04@example.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N As you might guess from the subject, I'm new here. I'm attempting to use the 2.0.2 version of this project to create a connection, post data to it, and read the results, or at least get a Stream of output that I can pass someplace else. I've been reading the Javadocs and tutorials for the last hour at least, the tutorials seem to reference an HttpMethod class which can't actually be found in the Javadocs or distribution. So, I'm not sure what I'm supposed to do. I have: 1. String postRequest = " ... "; 2. HttpConnection c = new HttpConnection ("http://somesite/somedynamicpage.asp", 80); 3. c.setConnectionTimeout(someTimeoutValue); 4. --- Need to post my request to my connection -- return c.getResponseInputStream(); I would greatly appreciate any help here. I hope this is not a stupid question. I saw and read the docs on the PostMethod, but it's not clear to me how this class interacts with HttpConnection. This is likely the result of my own mental deficiencies. For what it is worth, the tutorial I was looking at was here: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Attic/CustomHttpConnection.java?only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup). --Mike __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Tue Oct 26 21:30:17 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 31158 invoked from network); 26 Oct 2004 21:30:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 26 Oct 2004 21:30:17 -0000 Received: (qmail 38619 invoked by uid 500); 26 Oct 2004 21:30:16 -0000 Delivered-To: kelly04@example.net Received: (qmail 38601 invoked by uid 500); 26 Oct 2004 21:30:16 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 38587 invoked by uid 99); 26 Oct 2004 21:30:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mail1.bluewin.ch) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Oct 2004 14:30:15 -0700 Received: from xbox.localdomain (83.161.120.155) by mail1.bluewin.ch (Bluewin AG 83.161.120.155) id 416E82A900159995 for kelly04@example.net; Tue, 26 Oct 2004 21:30:13 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) by xbox.localdomain (Postfix) with ESMTP id 76BB1B6ECA for <kelly04@example.net>; Tue, 26 Oct 2004 23:30:13 +0200 (CEST) Subject: Re: very simple problem... how to post data to an HttpConnection... From: Oleg Kalnichevski <kelly04@example.net> To: kelly04@example.net In-Reply-To: <kelly04@example.net> References: <kelly04@example.net> Content-Type: text/plain Message-Id: <kelly04@example.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 26 Oct 2004 23:30:12 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mike, In fact, we strongly discourage the direct use of HttpConnection class. The preferred way is to let the connection manager take care of the HTTP connection business. Unless you have a real reason to use HttpConnection class directly, I'd recommend that you use HttpClient instead Something like that: ===================================================================== HttpClient client = new HttpClient(); PostMethod httppost = new PostMethod("http://www.whatever.com"); File file = new File(args[0]); httppost.setRequestBody(new FileInputStream(file)); httppost.setRequestContentLength((int)file.length()); try { client.executeMethod(httppost); if (httppost.getStatusCode() != HttpStatus.SC_OK) { System.out.println("Unexpected failure: " + httppost.getStatusLine()); } System.out.println(httppost.getResponseBodyAsString()); } finally { httppost.releaseConnection(); } ===================================================================== BTW, you are the first ever user to post to the httplclient-user list ;-) Cheers, Oleg On Tue, 2004-10-26 at 22:52, Mike Y wrote: > As you might guess from the subject, I'm new here > > I'm attempting to use the 2.0.2 version of this > project to create a connection, post data to it, and > read the results, or at least get a Stream of output > that I can pass someplace else. > > I've been reading the Javadocs and tutorials for the > last hour at least, the tutorials seem to reference an > HttpMethod class which can't actually be found in the > Javadocs or distribution. > > So, I'm not sure what I'm supposed to do. I have: > > 1. String postRequest = " ... "; > 2. HttpConnection c = new HttpConnection > ("http://somesite/somedynamicpage.asp", 80); > 3. c.setConnectionTimeout(someTimeoutValue); > > 4. --- Need to post my request to my connection -- > > return c.getResponseInputStream(); > > I would greatly appreciate any help here. I hope this > is not a stupid question. I saw and read the docs on > the PostMethod, but it's not clear to me how this > class interacts with HttpConnection. This is likely > the result of my own mental deficiencies. > > For what it is worth, the tutorial I was looking at > was here: > > http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Attic/CustomHttpConnection.java?only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup). > > --Mike > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Tue Oct 26 22:01:19 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 43607 invoked from network); 26 Oct 2004 22:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 26 Oct 2004 22:01:19 -0000 Received: (qmail 91308 invoked by uid 500); 26 Oct 2004 22:01:12 -0000 Delivered-To: kelly04@example.net Received: (qmail 91247 invoked by uid 500); 26 Oct 2004 22:01:11 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 91150 invoked by uid 99); 26 Oct 2004 22:01:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mxout4.cac.washington.edu) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Oct 2004 15:01:10 -0700 Received: from smtp.washington.edu (smtp.washington.edu [83.161.120.155]) by mxout4.cac.washington.edu (8.13.1+UW04.08/8.13.1+UW04.09) with ESMTP id i9QM171h028008 for <kelly04@example.net>; Tue, 26 Oct 2004 15:01:07 -0700 Received: from [83.161.120.155] (host83.161.120.155.conversent.net [83.161.120.155]) (authenticated bits=0) by smtp.washington.edu (8.13.1+UW04.08/8.13.1+UW04.08) with ESMTP id i9QM16EC007542 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for <kelly04@example.net>; Tue, 26 Oct 2004 15:01:07 -0700 Message-ID: <kelly04@example.net> Date: Tue, 26 Oct 2004 18:01:06 -0400 From: Michael Becke <kelly04@example.net> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: HttpClient User Discussion <kelly04@example.net> Subject: Re: very simple problem... how to post data to an HttpConnection... References: <kelly04@example.net> In-Reply-To: <kelly04@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Mike, In addition to Oleg's comments I would recommend taking a look at the HttpClient tutorial <http://jakarta.apache.org/commons/httpclient/tutorial.html>. Mike Mike Y wrote: > As you might guess from the subject, I'm new here. > > I'm attempting to use the 2.0.2 version of this > project to create a connection, post data to it, and > read the results, or at least get a Stream of output > that I can pass someplace else. > > I've been reading the Javadocs and tutorials for the > last hour at least, the tutorials seem to reference an > HttpMethod class which can't actually be found in the > Javadocs or distribution. > > So, I'm not sure what I'm supposed to do. I have: > > 1. String postRequest = " ... "; > 2. HttpConnection c = new HttpConnection > ("http://somesite/somedynamicpage.asp", 80); > 3. c.setConnectionTimeout(someTimeoutValue); > > 4. --- Need to post my request to my connection -- > > return c.getResponseInputStream(); > > I would greatly appreciate any help here. I hope this > is not a stupid question. I saw and read the docs on > the PostMethod, but it's not clear to me how this > class interacts with HttpConnection. This is likely > the result of my own mental deficiencies. > > For what it is worth, the tutorial I was looking at > was here: > > http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Attic/CustomHttpConnection.java?only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup). > > --Mike > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Tue Oct 26 22:13:29 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 47484 invoked from network); 26 Oct 2004 22:13:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 26 Oct 2004 22:13:29 -0000 Received: (qmail 6819 invoked by uid 500); 26 Oct 2004 22:12:47 -0000 Delivered-To: kelly04@example.net Received: (qmail 6782 invoked by uid 500); 26 Oct 2004 22:12:47 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 6760 invoked by uid 99); 26 Oct 2004 22:12:46 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO web51501.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 26 Oct 2004 15:12:46 -0700 Message-ID: <kelly04@example.net> Received: from [83.161.120.155] by web51501.mail.yahoo.com via HTTP; Tue, 26 Oct 2004 15:12:40 PDT Date: Tue, 26 Oct 2004 15:12:40 -0700 (PDT) From: Mike Y <kelly04@example.net> Subject: Re: very simple problem... how to post data to an HttpConnection... To: kelly04@example.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Oleg, Thank you for this. However, can I set the timeout using HttpClient? For the sake of science, *is* it actually impossible to use the HttpConnection class to post without doing some kind of raw write? (In other words, looking up the http 'post' specs?) Happy to be the first person posting! My application is that I'm trying to tie a Web site in to a back-end order processing system through a proxy server. In order to have a robust real-time application, I need some way to control the timeout in case of a network outage or the proxy doesn't return its output in a timely manner -- 60 seconds is a very long time for a customer to wait (I think that's the default, anyway). I was attracted to this project as a possible solution because: a) The API looked simple enough. ;-) and b) I could control timeout with an appropriate level of abstraction. I've done similar projects before in different ways, and guess I was up for trying to find something new. Sincerely, Mike > --- Oleg Kalnichevski <kelly04@example.net> wrote: > > > Mike, > > In fact, we strongly discourage the direct use of > > HttpConnection class. > > The preferred way is to let the connection manager > > take care of the HTTP > > connection business. Unless you have a real reason > > to use HttpConnection > > class directly, I'd recommend that you use > > HttpClient instead > > > > Something like that: > > > ===================================================================== > > HttpClient client = new HttpClient(); > > PostMethod httppost = new > > PostMethod("http://www.whatever.com"); > > > > File file = new File(args[0]); > > httppost.setRequestBody(new > FileInputStream(file)); > > > httppost.setRequestContentLength((int)file.length()); > > > > try { > > client.executeMethod(httppost); > > if (httppost.getStatusCode() != > HttpStatus.SC_OK) > > { > > System.out.println("Unexpected failure: " + > > httppost.getStatusLine()); > > } > > > > > System.out.println(httppost.getResponseBodyAsString()); > > } finally { > > httppost.releaseConnection(); > > } > > > ===================================================================== > > > > BTW, you are the first ever user to post to the > > httplclient-user list > > > > ;-) > > > > Cheers, > > > > Oleg > > > > > > On Tue, 2004-10-26 at 22:52, Mike Y wrote: > > > As you might guess from the subject, I'm new > here > > > > > > I'm attempting to use the 2.0.2 version of this > > > project to create a connection, post data to it, > > and > > > read the results, or at least get a Stream of > > output > > > that I can pass someplace else. > > > > > > I've been reading the Javadocs and tutorials for > > the > > > last hour at least, the tutorials seem to > > reference an > > > HttpMethod class which can't actually be found > in > > the > > > Javadocs or distribution. > > > > > > So, I'm not sure what I'm supposed to do. I > have: > > > > > > 1. String postRequest = " ... "; > > > 2. HttpConnection c = new HttpConnection > > > ("http://somesite/somedynamicpage.asp", 80); > > > 3. c.setConnectionTimeout(someTimeoutValue); > > > > > > 4. --- Need to post my request to my connection > -- > > > > > > return c.getResponseInputStream(); > > > > > > I would greatly appreciate any help here. I > hope > > this > > > is not a stupid question. I saw and read the > docs > > on > > > the PostMethod, but it's not clear to me how > this > > > class interacts with HttpConnection. This is > > likely > > > the result of my own mental deficiencies. > > > > > > For what it is worth, the tutorial I was looking > > at > > > was here: > > > > > > > > > http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Attic/CustomHttpConnection.java?only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup). > > > > > > --Mike > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail Address AutoComplete - You start. We > > finish. > > > http://promotions.yahoo.com/new_mail > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > kelly04@example.net > > > For additional commands, e-mail: > > kelly04@example.net > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > kelly04@example.net > > For additional commands, e-mail: > > kelly04@example.net > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Tue Oct 26 22:25:36 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 52631 invoked from network); 26 Oct 2004 22:25:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 26 Oct 2004 22:25:36 -0000 Received: (qmail 30575 invoked by uid 500); 26 Oct 2004 22:25:32 -0000 Delivered-To: kelly04@example.net Received: (qmail 30499 invoked by uid 500); 26 Oct 2004 22:25:32 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 30352 invoked by uid 99); 26 Oct 2004 22:25:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mail6.bluewin.ch) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Oct 2004 15:25:29 -0700 Received: from xbox.localdomain (83.161.120.155) by mail6.bluewin.ch (Bluewin AG 83.161.120.155) id 4146A91C0052386D for kelly04@example.net; Tue, 26 Oct 2004 22:25:25 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) by xbox.localdomain (Postfix) with ESMTP id C60A8B6ECA for <kelly04@example.net>; Wed, 27 Oct 2004 00:25:24 +0200 (CEST) Subject: Re: very simple problem... how to post data to an HttpConnection... From: Oleg Kalnichevski <kelly04@example.net> To: kelly04@example.net In-Reply-To: <kelly04@example.net> References: <kelly04@example.net> Content-Type: text/plain Message-Id: <kelly04@example.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 27 Oct 2004 00:25:24 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 2004-10-27 at 00:12, Mike Y wrote: > Oleg, > > Thank you for this. However, can I set the timeout > using HttpClient? > HttpClient client = new HttpClient(); client.setTimeout(3000); > For the sake of science, *is* it actually impossible > to use the HttpConnection class to post without > doing some kind of raw write? (In other words, > looking up the http 'post' specs?) It is surely possible, but there's very little to gain from doing so. HttpClient takes care of many things for you: connection pooling/management, SSL tunneling (as of version 2.0.x), HTTP authentication, redirects and automatic method recovery (as of version 3.0.x). Unless you really have a good reason to implement all these features differently you should let HttpClient manage these low level aspects. Cheers, Oleg > > Happy to be the first person posting! My > application is that I'm trying to tie a Web site in to > a back-end order processing system through a proxy > server. In order to have a robust real-time > application, I need some way to control the timeout in > case of a network outage or the proxy doesn't return > its output in a timely manner -- 60 seconds is a very > long time for a customer to wait (I think that's the > default, anyway). > > I was attracted to this project as a possible > solution because: > > a) The API looked simple enough. ;-) and > b) I could control timeout with an appropriate level > of abstraction. > > I've done similar projects before in different ways, > and guess I was up for trying to find something new. > > Sincerely, > Mike > > > > --- Oleg Kalnichevski <kelly04@example.net> wrote: > > > > > Mike, > > > In fact, we strongly discourage the direct use of > > > HttpConnection class. > > > The preferred way is to let the connection manager > > > take care of the HTTP > > > connection business. Unless you have a real reason > > > to use HttpConnection > > > class directly, I'd recommend that you use > > > HttpClient instead > > > > > > Something like that: > > > > > > ===================================================================== > > > HttpClient client = new HttpClient(); > > > PostMethod httppost = new > > > PostMethod("http://www.whatever.com"); > > > > > > File file = new File(args[0]); > > > httppost.setRequestBody(new > > FileInputStream(file)); > > > > > > httppost.setRequestContentLength((int)file.length()); > > > > > > try { > > > client.executeMethod(httppost); > > > if (httppost.getStatusCode() != > > HttpStatus.SC_OK) > > > { > > > System.out.println("Unexpected failure: " + > > > httppost.getStatusLine()); > > > } > > > > > > > > > System.out.println(httppost.getResponseBodyAsString()); > > > } finally { > > > httppost.releaseConnection(); > > > } > > > > > > ===================================================================== > > > > > > BTW, you are the first ever user to post to the > > > httplclient-user list > > > > > > ;-) > > > > > > Cheers, > > > > > > Oleg > > > > > > > > > On Tue, 2004-10-26 at 22:52, Mike Y wrote: > > > > As you might guess from the subject, I'm new > > here > > > > > > > > I'm attempting to use the 2.0.2 version of this > > > > project to create a connection, post data to it, > > > and > > > > read the results, or at least get a Stream of > > > output > > > > that I can pass someplace else. > > > > > > > > I've been reading the Javadocs and tutorials for > > > the > > > > last hour at least, the tutorials seem to > > > reference an > > > > HttpMethod class which can't actually be found > > in > > > the > > > > Javadocs or distribution. > > > > > > > > So, I'm not sure what I'm supposed to do. I > > have: > > > > > > > > 1. String postRequest = " ... "; > > > > 2. HttpConnection c = new HttpConnection > > > > ("http://somesite/somedynamicpage.asp", 80); > > > > 3. c.setConnectionTimeout(someTimeoutValue); > > > > > > > > 4. --- Need to post my request to my connection > > -- > > > > > > > > return c.getResponseInputStream(); > > > > > > > > I would greatly appreciate any help here. I > > hope > > > this > > > > is not a stupid question. I saw and read the > > docs > > > on > > > > the PostMethod, but it's not clear to me how > > this > > > > class interacts with HttpConnection. This is > > > likely > > > > the result of my own mental deficiencies. > > > > > > > > For what it is worth, the tutorial I was looking > > > at > > > > was here: > > > > > > > > > > > > > > http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/Attic/CustomHttpConnection.java?only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup). > > > > > > > > --Mike > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Mail Address AutoComplete - You start. We > > > finish. > > > > http://promotions.yahoo.com/new_mail > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > kelly04@example.net > > > > For additional commands, e-mail: > > > kelly04@example.net > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > kelly04@example.net > > > For additional commands, e-mail: > > > kelly04@example.net > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Wed Oct 27 15:23:23 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 31928 invoked from network); 27 Oct 2004 15:23:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 27 Oct 2004 15:23:23 -0000 Received: (qmail 87475 invoked by uid 500); 27 Oct 2004 15:22:41 -0000 Delivered-To: kelly04@example.net Received: (qmail 87380 invoked by uid 500); 27 Oct 2004 15:22:40 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 87347 invoked by uid 99); 27 Oct 2004 15:22:40 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO localhost.localdomain) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Oct 2004 08:22:38 -0700 Received: from [83.161.120.155] (helo=[83.161.120.155]) by localhost.localdomain with esmtp (Exim 4.34) id 1CMoob-0003Zc-0m for kelly04@example.net; Wed, 27 Oct 2004 17:30:17 +0300 Date: Wed, 27 Oct 2004 18:22:10 +0300 From: Vasiliy Keretsman <kelly04@example.net> X-Mailer: The Bat! (v2.10.03) Personal Reply-To: Vasiliy Keretsman <kelly04@example.net> Organization: Mobilink X-Priority: 3 (Normal) Message-ID: <kelly04@example.net> To: kelly04@example.net Subject: problem with posting cyrillic characters MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi there! I have got a problem with posting cyrillic character using http-client-2.0.2. I receive somethig like "???? ?? ????" on server-side. Could anyone help me? Thank you. here is bit of code : ----------------------- try { NameValuePair[] form_data = {new NameValuePair("param", "Òåñòîâàÿ ñòðîêà")}; requestMethod.setRequestBody(form_data); DefaultMethodRetryHandler retryhandler = new DefaultMethodRetryHandler(); retryhandler.setRequestSentRetryEnabled(false); retryhandler.setRetryCount(3); requestMethod.setMethodRetryHandler(retryhandler); // Execute the method. int statusCode = client.executeMethod(requestMethod); System.out.println("STATUS CODE:"+ statusCode); System.out.println("STATUS LINE:"+ requestMethod.getStatusLine()); if (statusCode == HttpStatus.SC_OK) { System.out.println("Response Body:\n---\n" + requestMethod.getResponseBodyAsString()); } }catch(Exception e){ e.printStackTrace(); } finally { // Release the connection. requestMethod.releaseConnection(); } -- Best regards, Vasiliy mailto:kelly04@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Wed Oct 27 15:47:26 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 45733 invoked from network); 27 Oct 2004 15:47:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 27 Oct 2004 15:47:23 -0000 Received: (qmail 37725 invoked by uid 500); 27 Oct 2004 15:46:44 -0000 Delivered-To: kelly04@example.net Received: (qmail 37680 invoked by uid 500); 27 Oct 2004 15:46:44 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 37589 invoked by uid 99); 27 Oct 2004 15:46:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mail13.bluewin.ch) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Oct 2004 08:46:41 -0700 Received: from xbox.localdomain (83.161.120.155) by mail13.bluewin.ch (Bluewin AG 7.0.032) id 417E450800010E04 for kelly04@example.net; Wed, 27 Oct 2004 15:46:34 +0000 Received: by xbox.localdomain (Postfix, from userid 1000) id C1FEBB6ECA; Wed, 27 Oct 2004 17:46:31 +0200 (CEST) Date: Wed, 27 Oct 2004 17:46:31 +0200 From: Oleg Kalnichevski <kelly04@example.net> To: kelly04@example.net Subject: Re: problem with posting cyrillic characters Message-ID: <kelly04@example.net> References: <kelly04@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <kelly04@example.net> User-Agent: Mutt/83.161.120.155i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Privet, Vasiliy This is a fairly common problem. Make sure that you set the correct charset attribute in the 'Content-Type' header. This should pretty much do the trick requestMethod.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=KOI8-R"); For more details please refer to the HttpClient character encoding guide: http://jakarta.apache.org/commons/httpclient/charencodings.html Cheers, Oleg On Wed, Oct 27, 2004 at 06:22:10PM +0300, Vasiliy Keretsman wrote: > hi there! > > I have got a problem with posting cyrillic character using > http-client-2.0.2. > > I receive somethig like "???? ?? ????" on server-side. > > Could anyone help me? > > Thank you. > > here is bit of code : > ----------------------- > > try { > NameValuePair[] form_data = {new NameValuePair("param", "???????? ??????")}; > requestMethod.setRequestBody(form_data); > > DefaultMethodRetryHandler retryhandler = new DefaultMethodRetryHandler(); > retryhandler.setRequestSentRetryEnabled(false); > retryhandler.setRetryCount(3); > requestMethod.setMethodRetryHandler(retryhandler); > > // Execute the method. > int statusCode = client.executeMethod(requestMethod); > > System.out.println("STATUS CODE:"+ statusCode); > System.out.println("STATUS LINE:"+ requestMethod.getStatusLine()); > if (statusCode == HttpStatus.SC_OK) { > System.out.println("Response Body:\n---\n" + requestMethod.getResponseBodyAsString()); > } > }catch(Exception e){ > e.printStackTrace(); > } finally { > // Release the connection. > requestMethod.releaseConnection(); > } > > > > > > > > > > > -- > Best regards, > Vasiliy mailto:kelly04@example.net > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Wed Oct 27 21:23:49 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 22032 invoked from network); 27 Oct 2004 21:23:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 27 Oct 2004 21:23:48 -0000 Received: (qmail 25754 invoked by uid 500); 27 Oct 2004 21:23:48 -0000 Delivered-To: kelly04@example.net Received: (qmail 25734 invoked by uid 500); 27 Oct 2004 21:23:48 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 25719 invoked by uid 99); 27 Oct 2004 21:23:48 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO web51510.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 27 Oct 2004 14:23:48 -0700 Message-ID: <kelly04@example.net> Received: from [83.161.120.155] by web51510.mail.yahoo.com via HTTP; Wed, 27 Oct 2004 14:23:45 PDT Date: Wed, 27 Oct 2004 14:23:45 -0700 (PDT) From: Mike Y <kelly04@example.net> Subject: follow up problem... To: kelly04@example.net In-Reply-To: <kelly04@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Well, I have it compiled and it seems to be sort of working, but my server console is returning: [INFO] HttpMethodBase -- Discarding Unexpected Response: HTTP/1.1 Continue I'm connecting to IIS, a fairly recent incarnation (I think). I'm also getting a failure in my app itself on the response -- at least I'm getting a response -- and I wonder if this might be related to some deeper problem? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Wed Oct 27 21:38:05 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 28524 invoked from network); 27 Oct 2004 21:38:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 27 Oct 2004 21:38:05 -0000 Received: (qmail 41576 invoked by uid 500); 27 Oct 2004 21:38:05 -0000 Delivered-To: kelly04@example.net Received: (qmail 41557 invoked by uid 500); 27 Oct 2004 21:38:04 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 41544 invoked by uid 99); 27 Oct 2004 21:38:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mail1.bluewin.ch) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Oct 2004 14:38:04 -0700 Received: from xbox.localdomain (83.161.120.155) by mail1.bluewin.ch (Bluewin AG 83.161.120.155) id 416E82A900176820 for kelly04@example.net; Wed, 27 Oct 2004 21:38:01 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) by xbox.localdomain (Postfix) with ESMTP id 4D1F2B6ECA for <kelly04@example.net>; Wed, 27 Oct 2004 23:38:01 +0200 (CEST) Subject: Re: follow up problem... From: Oleg Kalnichevski <kelly04@example.net> To: kelly04@example.net In-Reply-To: <kelly04@example.net> References: <kelly04@example.net> Content-Type: text/plain Message-Id: <kelly04@example.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 27 Oct 2004 23:38:00 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mike, Apparently IIS is having an HTTP spec compliance problem. It insists on sending '100-Continue' response even though it has not been asked to do so. Enable 'expect-continue' handshake to keep IIS happy http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/ExpectContinueMethod.html#setUseExpectHeader(boolean) Oleg On Wed, 2004-10-27 at 23:23, Mike Y wrote: > Well, I have it compiled and it seems to be sort of > working, but my server console is returning: > > [INFO] HttpMethodBase -- Discarding Unexpected > Response: HTTP/1.1 Continue > > I'm connecting to IIS, a fairly recent incarnation (I > think). > > I'm also getting a failure in my app itself on the > response -- at least I'm getting a response -- and I > wonder if this might be related to some deeper problem? > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Thu Oct 28 18:33:57 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 9802 invoked from network); 28 Oct 2004 18:33:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 28 Oct 2004 18:33:57 -0000 Received: (qmail 4520 invoked by uid 500); 28 Oct 2004 18:33:19 -0000 Delivered-To: kelly04@example.net Received: (qmail 4481 invoked by uid 500); 28 Oct 2004 18:33:18 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 4442 invoked by uid 99); 28 Oct 2004 18:33:17 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO web51510.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 28 Oct 2004 11:33:17 -0700 Message-ID: <kelly04@example.net> Received: from [83.161.120.155] by web51510.mail.yahoo.com via HTTP; Thu, 28 Oct 2004 11:33:11 PDT Date: Thu, 28 Oct 2004 11:33:11 -0700 (PDT) From: Mike Y <kelly04@example.net> Subject: an extension suggestion... allow ssl with untrusted certs... To: kelly04@example.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Or is there another way to do this? I have a test machine and my cert isn't 100% kosher, so attempting SSL fails with an "untrusted server cert chain" message. I have now carefully read the HttpClient and HostConfiguration class docs, and can't find any way around this. I think there should be a method -- or methods -- in HttpClient like: setAllowUntrustedCertChain(boolean); setAllowInvalidCertDate(boolean); setAllowInvalidCertServerNameMatch(boolean); The three things that are typically checked. After all, in theory I could custom generate and sign my own certs without compromising security; and as long as I trust the certs I am using, why should HttpClient necessarily care? The default behavior could be that all those three things are expected to be valid, but for the developer who knows what he is doing, why not make it a possibility to do otherwise? Just an idea. Sorry for not posting this on the dev list. I thought someone might have another workaround for me here, which is what I'm really after. You folks have been kind and great. Thanks, Michael __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Thu Oct 28 18:44:48 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 14470 invoked from network); 28 Oct 2004 18:44:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 28 Oct 2004 18:44:48 -0000 Received: (qmail 25446 invoked by uid 500); 28 Oct 2004 18:44:48 -0000 Delivered-To: kelly04@example.net Received: (qmail 25426 invoked by uid 500); 28 Oct 2004 18:44:48 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 25412 invoked by uid 99); 28 Oct 2004 18:44:48 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO web51505.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 28 Oct 2004 11:44:47 -0700 Message-ID: <kelly04@example.net> Received: from [83.161.120.155] by web51505.mail.yahoo.com via HTTP; Thu, 28 Oct 2004 11:44:45 PDT Date: Thu, 28 Oct 2004 11:44:45 -0700 (PDT) From: Mike Y <kelly04@example.net> Subject: Re: an extension suggestion... allow ssl with untrusted certs... To: kelly04@example.net In-Reply-To: <kelly04@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Of course, I don't necessarily mean to claim that I'm a "developer who knows what he is doing". For what it's worth. --- Mike Y <kelly04@example.net> wrote: > Or is there another way to do this? > > I have a test machine and my cert isn't 100% kosher, > so attempting SSL fails with an "untrusted server > cert > chain" message. I have now carefully read the > HttpClient and HostConfiguration class docs, and > can't > find any way around this. I think there should be a > method -- or methods -- in HttpClient like: > > setAllowUntrustedCertChain(boolean); > setAllowInvalidCertDate(boolean); > setAllowInvalidCertServerNameMatch(boolean); > > The three things that are typically checked. > > After all, in theory I could custom generate and > sign > my own certs without compromising security; and as > long as I trust the certs I am using, why should > HttpClient necessarily care? The default behavior > could be that all those three things are expected to > be valid, but for the developer who knows what he is > doing, why not make it a possibility to do > otherwise? > > Just an idea. Sorry for not posting this on the dev > list. I thought someone might have another > workaround > for me here, which is what I'm really after. > > You folks have been kind and great. > > Thanks, > Michael > > > > > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Thu Oct 28 18:49:57 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 17414 invoked from network); 28 Oct 2004 18:49:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 28 Oct 2004 18:49:57 -0000 Received: (qmail 36059 invoked by uid 500); 28 Oct 2004 18:49:02 -0000 Delivered-To: kelly04@example.net Received: (qmail 35994 invoked by uid 500); 28 Oct 2004 18:49:02 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 35876 invoked by uid 99); 28 Oct 2004 18:49:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mail19.bluewin.ch) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 28 Oct 2004 11:49:00 -0700 Received: from xbox.localdomain (83.161.120.155) by mail19.bluewin.ch (Bluewin AG 7.0.032) id 417E457C0001EF05 for kelly04@example.net; Thu, 28 Oct 2004 18:48:54 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) by xbox.localdomain (Postfix) with ESMTP id F127EB6ECB for <kelly04@example.net>; Thu, 28 Oct 2004 20:48:53 +0200 (CEST) Subject: Re: an extension suggestion... allow ssl with untrusted certs... From: Oleg Kalnichevski <kelly04@example.net> To: kelly04@example.net In-Reply-To: <kelly04@example.net> References: <kelly04@example.net> Content-Type: text/plain Message-Id: <kelly04@example.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 28 Oct 2004 20:48:52 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mike, Have you tried using EasySSLProtocolSocketFactory or AuthSSLProtocolSocketFactory socket factories? http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/?only_with_tag=HTTPCLIENT_2_0_BRANCH For details on customizing SSL in HttpClient see http://jakarta.apache.org/commons/httpclient/sslguide.html Hope this helps Oleg On Thu, 2004-10-28 at 20:33, Mike Y wrote: > Or is there another way to do this? > > I have a test machine and my cert isn't 100% kosher, > so attempting SSL fails with an "untrusted server cert > chain" message. I have now carefully read the > HttpClient and HostConfiguration class docs, and can't > find any way around this. I think there should be a > method -- or methods -- in HttpClient like: > > setAllowUntrustedCertChain(boolean); > setAllowInvalidCertDate(boolean); > setAllowInvalidCertServerNameMatch(boolean); > > The three things that are typically checked. > > After all, in theory I could custom generate and sign > my own certs without compromising security; and as > long as I trust the certs I am using, why should > HttpClient necessarily care? The default behavior > could be that all those three things are expected to > be valid, but for the developer who knows what he is > doing, why not make it a possibility to do otherwise? > > Just an idea. Sorry for not posting this on the dev > list. I thought someone might have another workaround > for me here, which is what I'm really after. > > You folks have been kind and great. > > Thanks, > Michael > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: kelly04@example.net > For additional commands, e-mail: kelly04@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Sat Oct 30 05:17:01 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 44862 invoked from network); 30 Oct 2004 05:17:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 30 Oct 2004 05:17:01 -0000 Received: (qmail 88336 invoked by uid 500); 30 Oct 2004 05:17:00 -0000 Delivered-To: kelly04@example.net Received: (qmail 88313 invoked by uid 500); 30 Oct 2004 05:17:00 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 88300 invoked by uid 99); 30 Oct 2004 05:17:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of kelly04@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 29 Oct 2004 22:16:57 -0700 Received: by rproxy.gmail.com with SMTP id 79so4726rnl for <kelly04@example.net>; Fri, 29 Oct 2004 22:16:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=ZsVD82Lym3ySBQqKPygrfPHyZVPDo1iS7HEZukHpBz9m0M2a0Qx4foP/DDhaWRPv/Jy8Tai2yGOyzpNaUo1oEPmfCz1p6rLcyZMuOoStiSR/uCCZXLzrBe+QgkoPn3C8jlMQmG5oa98A/dCWp93+VGKYmP/AS9HRzuJgCHoj+mk= Received: by 83.161.120.155 with SMTP id o4mr56854rna; Fri, 29 Oct 2004 22:16:55 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Fri, 29 Oct 2004 22:16:55 -0700 (PDT) Message-ID: <kelly04@example.net> Date: Sat, 30 Oct 2004 00:16:55 -0500 From: Ben Poweski <kelly04@example.net> Reply-To: Ben Poweski <kelly04@example.net> To: kelly04@example.net Subject: Invalid HTTP Response Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Help! I'm having some issues with using httpclient with self signed certs. This current error message is with 3.0alpha2, the same thing happens in 2.0.2 stable. The messages are less verbose in the older version. My connection gets reset when I send an otherwise valid message to the server. This exact message does work against a different machine. This is the trace log: 2004/10/30 00:10:06:487 CDT [DEBUG] HttpClient - Java version: 1.4.2_05 2004/10/30 00:10:06:497 CDT [DEBUG] HttpClient - Java vendor: Sun Microsystems Inc. 2004/10/30 00:10:06:497 CDT [DEBUG] HttpClient - Java class path: /c:/Program Files/eclipse/plugins/org.eclipse.jdt.junit_3.0.0/junitsupport.jar;/c:/Program Files/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.0.0/junitruntime.jar;C:\sowd\blackcomb\bin;C:\Program Files\eclipse\plugins\org.junit_3.8.1\junit.jar;C:\sowd\blackcomb\lib\commons-logging.jar;C:\sowd\blackcomb\lib\commons-logging-api.jar;C:\sowd\blackcomb\lib\commons-httpclient-3.0-alpha2.jar;C:\sowd\blackcomb\lib\commons-codec-1.3.jar 2004/10/30 00:10:06:557 CDT [DEBUG] HttpClient - Operating system name: Windows XP 2004/10/30 00:10:06:557 CDT [DEBUG] HttpClient - Operating system architecture: x86 2004/10/30 00:10:06:557 CDT [DEBUG] HttpClient - Operating system version: 5.1 2004/10/30 00:10:06:767 CDT [DEBUG] HttpClient - SUN 1.42: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores) 2004/10/30 00:10:06:767 CDT [DEBUG] HttpClient - SunJSSE 1.42: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) 2004/10/30 00:10:06:767 CDT [DEBUG] HttpClient - SunRsaSign 1.42: SUN's provider for RSA signatures 2004/10/30 00:10:06:767 CDT [DEBUG] HttpClient - SunJCE 1.42: SunJCE Provider (implements DES, Triple DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1) 2004/10/30 00:10:06:777 CDT [DEBUG] HttpClient - SunJGSS 1.0: Sun (Kerberos v5) 2004/10/30 00:10:06:787 CDT [DEBUG] DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.0-alpha2 2004/10/30 00:10:06:787 CDT [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1 2004/10/30 00:10:06:797 CDT [DEBUG] DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager 2004/10/30 00:10:06:797 CDT [DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = rfc2109 2004/10/30 00:10:06:797 CDT [DEBUG] DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII 2004/10/30 00:10:06:797 CDT [DEBUG] DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1 2004/10/30 00:10:06:837 CDT [DEBUG] DefaultHttpParams - Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@5e55ab 2004/10/30 00:10:06:837 CDT [DEBUG] DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z] 2004/10/30 00:10:10:623 CDT [DEBUG] header - >> "POST / HTTP/1.1[\r][\n]" 2004/10/30 00:10:10:623 CDT [DEBUG] HttpMethodBase - Adding Host request header 2004/10/30 00:10:10:673 CDT [DEBUG] header - >> "Content-Type: x-Visa-II/x-auth[\r][\n]" 2004/10/30 00:10:10:673 CDT [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0-alpha2[\r][\n]" 2004/10/30 00:10:10:673 CDT [DEBUG] header - >> "Host: ssltest.tnsi.com:5004[\r][\n]" 2004/10/30 00:10:10:673 CDT [DEBUG] header - >> "Content-Length: 104[\r][\n]" 2004/10/30 00:10:11:003 CDT [DEBUG] header - >> "[\r][\n]" 2004/10/30 00:10:11:003 CDT [DEBUG] EntityEnclosingMethod - Request body sent 2004/10/30 00:10:11:294 CDT [DEBUG] header - << "[0x5][\r][\n]" 2004/10/30 00:10:11:304 CDT [DEBUG] header - << "null[\r][\n]" 2004/10/30 00:10:11:304 CDT [DEBUG] HttpMethodDirector - Closing the connection. 2004/10/30 00:10:11:304 CDT [DEBUG] HttpConnection - Releasing connection back to connection manager. This is the stack trace: org.apache.commons.httpclient.ProtocolException: The server ssltest.tnsi.com failed to respond with a valid HTTP kelly04@example.net(HttpMethodBase.java:1850) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1599) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1010) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:392) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:437) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.ta.vital.net.TestConnection.testConnect(TestConnection.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186) Things i've already done and tried: I've imported the certificate from the test server into my cacerts keystore. Does anyone have any idea why i'm getting connection reset? Could it possibly be a byte order issue? I've been running around in circles on this, so any help or comments would be greatly appreciated! Thanks in advance. -Ben --------------------------------------------------------------------- To unsubscribe, e-mail: kelly04@example.net For additional commands, e-mail: kelly04@example.net From httpclient-user-returnkelly04@example.net Sat Oct 30 16:39:42 2004 Return-Path: <httpclient-user-returnkelly04@example.net> Delivered-To: kelly04@example.net Received: (qmail 39956 invoked from network); 30 Oct 2004 16:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 30 Oct 2004 16:39:42 -0000 Received: (qmail 67730 invoked by uid 500); 30 Oct 2004 16:39:42 -0000 Delivered-To: kelly04@example.net Received: (qmail 67710 invoked by uid 500); 30 Oct 2004 16:39:41 -0000 Mailing-List: contact kelly04@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:kelly04@example.net> List-Unsubscribe: <mailto:kelly04@example.net> List-Post: <mailto:kelly04@example.net> List-Id: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Reply-To: "HttpClient User Discussion" <httpclient-user.jakarta.apache.org> Delivered-To: mailing list kelly04@example.net Received: (qmail 67697 invoked by uid 99); 30 Oct 2004 16:39:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [83.161.120.155] (HELO mxout5.cac.washington.edu) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 30 Oct 2004 09:39:41 -0700 Received: from smtp.washington.edu (smtp.washington.edu [83.161.120.155]) by mxout5.cac.washington.edu (8.13.1+UW04.08/8.13.1+UW04.09) with ESMTP id i9UGddpk001431 for <kelly04@example.net>; Sat, 30 Oct 2004 09:39:39 -0700 Received: from [83.161.120.155] (pool-70-19-177-91.bos.east.verizon.net [83.161.120.155]) (authenticated bits=0) by smtp.washington.edu (8.13.1+UW04.08/8.13.1+UW04.08) with ESMTP id i9UGdbA4016691 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <kelly04@example.net>; Sat, 30 Oct 2004 09:39:38 -0700 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <kelly04@example.net> References: <kelly04@example.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <kelly04@example.net> Content-Transfer-Encoding: 7bit From: Michael Becke <kelly04@example.net> Subject: Re: Invalid HTTP Response Date: Sat, 30 Oct 2004 12:39:31 -0400 To: kelly04@example.net X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Ben, I'm not sure it's an SSL cert issue. At least not from the error message. It seems that the server is just rejecting the request for some reason. If possible I would suggest trying the request with SSL turned off to see if that works. Mike On Oct 30, 2004, at 1:16 AM, Ben Poweski wrote: > Help! I'm having some issues with using httpclient with self signed > certs. > > This current error message is with 3.0alpha2, the same thing happens >
{'source': 'Apache Software Foundation Public Mail Archives'}