DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: [Proposal] exception handling revised

2003-07-07 Thread Michael Becke
On Monday, July 7, 2003, at 10:36 AM, Kalnichevski, Oleg wrote: I would not be me, though, if I had not pointed out that HttpException derived from IOException still conceptually sucks. Protocol exceptions logically ARE NOT i/o exceptions in my opinion, no matter how many long drinks you take.

RE: HTTPClient exception

2003-07-07 Thread Claudio Santana
Thanks! I hope this helps to solve my situation! Have a nice sleep! -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 5:09 PM To: Commons HttpClient Project Subject: RE: HTTPClient exception Well, that is it. Have a look at EasyX509TrustMana

RE: HTTPClient exception

2003-07-07 Thread Oleg Kalnichevski
Well, that is it. Have a look at EasyX509TrustManager.java & EasySSLProtocolSocketFactory.java classes. They should help you to get a handle on the situation http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/ I have got to go to be

RE: HTTPClient exception

2003-07-07 Thread Claudio Santana
I didn't check that before... now I just ran it against my target server... www.autorize.net/gateway/transact.dll I receive the following exception: javax.net.ssl.SSLHandshakeException: unknown CA at com.ibm.jsse.JSSESocket.install(Unknown Source) at com.ibm.jsse.JSSEOutputStream.

RE: HTTPClient exception

2003-07-07 Thread Oleg Kalnichevski
Claudio, does the same code work with your target server? Oleg On Mon, 2003-07-07 at 23:49, Claudio Santana wrote: > I ran the basic connection program listed at the end of this email. I > can do a GET to Verisign website using SSL and direct socket connections > which means I no longer have th

RE: HTTPClient exception

2003-07-07 Thread Claudio Santana
I ran the basic connection program listed at the end of this email. I can do a GET to Verisign website using SSL and direct socket connections which means I no longer have the configuration problem. Some interesting condition is that if I don't add the provider dynamically I get an error of missing

Re: HTTPClient exception

2003-07-07 Thread Oleg Kalnichevski
Claudio, It's hard to tell what is going on there. Somehow I still suspect that SSL support is mis-configured and the target server drops the connection in the middle of the session. Have you tried testing your SSL setup with the little trick described in 'Troubleshooting' section of the SSL guid

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 21378] New: - Transfer-Encoding: identity not supported + possible patch

2003-07-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

HTTPClient exception

2003-07-07 Thread Claudio Santana
Hi all, I finally made the most basic SSL code run in my computer. Now I am trying to send Post requests with the HttpClient class. I get the following exception when I do the Execute method: java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketGetOption(Native M

RE: [Proposal] exception handling revised

2003-07-07 Thread Kalnichevski, Oleg
Mike, Eric & all Mike's suggestion to extend IOException does seem to be the best option that we have right now. It provides a (relatively) easy migration path for 2.0 users (API compatibility still does not save them from having to rethink their exception handling framework), while giving us e

Re: [Proposal] exception handling revised

2003-07-07 Thread Eric Johnson
Oleg, Thanks for digging into this. Oleg Kalnichevski wrote: One of the major shortcomings of the existing architecture is unclear and convoluted exception handling framework. Here's the list of my personal gripes with it - there is no clear-cut distinction between protocol exceptions (that a

Re: [Proposal] exception handling revised

2003-07-07 Thread Michael Becke
As an addendum to my previous email, it would also be possible to use Oleg's #2 option and just change HttpException to extend IOException. This would also allow us to keep API compatability. If this was done we could remove the throws IOException from HttpClient.executeMethod(). Mike Michael

Re: Occassional long download times

2003-07-07 Thread Eric Johnson
Michael, You might try turning on the wire and/or trace logging (which sounds like it might generate a lot of data), but it would also tell you exactly where the delay occurs. Knowing where the culprit occurs would provide additional detail that might clearly identify whether the problem lies

Re: [Proposal] exception handling revised

2003-07-07 Thread Michael Becke
Oleg Kalnichevski wrote: One of the major shortcomings of the existing architecture is unclear and convoluted exception handling framework. Here's the list of my personal gripes with it - there is no clear-cut distinction between protocol exceptions (that are in most cases fatal) and transport e

Re: Array of values ???

2003-07-07 Thread Roland Weber
The following is a HTML form with a set of same "name". How can use HttpClient to post them ?? PostMethod.addParameter(...) allows the same parameter name to be used multiple times. Or you can try a comma-separated list of the values you want to send. regards, Roland

Re: Array of values ???

2003-07-07 Thread Chris Brown
Maybe there should be a guide for beginners (an FAQ?) as to how HttpClient can be used to mimic submitting form field values (via GET and/or POST) from a browser..? Might be particularly interesting for those wishing to use this approach to send multipart forms containing - Chris - Origina

Array of values ???

2003-07-07 Thread Eric Chow
Hello, The following is a HTML form with a set of same "name". How can use HttpClient to post them ?? Best regards, Eric = C_ITEM_NO = 5; C_BOOKING_HOUR_LIMIT = 3; function check_input() { i = 0; fillCnt = 0; loopCnt = C_ITEM_NO - 1; isPrevIt

RE: cvscommit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclientTestAuthenticator.javaTestHttpState.javaTestHttps.java TestMethodsExternalHost.javaTestWebappBasicAuth.java

2003-07-07 Thread Kalnichevski, Oleg
Christopher, > this thread has gotten a bit out of hand now... As long as we manage behaving as mature people, I see no problem in talking things through > offensive, implying that we're doing something weird by using CVS HEAD > of HttpClient (which is totally normal at Jakarta). And your com

Re: How to post to a URL with Checkbox ?

2003-07-07 Thread Roland Weber
regards, Roland

RE: How to post to a URL with Checkbox ?

2003-07-07 Thread Amit Rana
HttpClient client = new HttpClient(); HttpMethod method = new PostMethod(URL); NameValuePair pair = new NameValuePair[2]; pair[0] = new NameValuePair("cb", "on"); pair[1] = new NameValuePair("n", "Eric"); ((PostMethod) method).setRequestBody(parameters); client.executeMethod(method); byte[] respo

RE: How to post to a URL with Checkbox ?

2003-07-07 Thread Amit Rana
HttpClient client = new HttpClient(); HttpMethod method = new PostMethod(URL); NameValuePair pair = new NameValuePair[2]; pair[0] = new NameValuePair("cb", "on"); pair[1] = new NameValuePair("n", "Eric"); ((PostMethod) method).setRequestBody(parameters); client.executeMethod(method); byte[] respo

Re: cvscommit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclientTestAuthenticator.javaTestHttpState.javaTestHttps.javaTestMethodsExternalHost.javaTestWebappBasicAuth.java

2003-07-07 Thread Christopher Lenz
Hi Oleg, this thread has gotten a bit out of hand now... I personally trust the HttpClient team to make the right decisions about the future of the code, and I even agree with the wording of the 2.1 release plan. "Breaking 2.0 API compatibility where absolutely unavoidable" is acceptable, as l

How to post to a URL with Checkbox ?

2003-07-07 Thread Eric Chow
Hello, If the HTML form is like the following : How can Post to "/servlet/Show" with the values as following ? n=Eric and the CheckBox should be "CHECKED" Please help ??? Best regards, Eric == If you know what you are doing, it is not calle