Re: Not giving ourselves enough credit on the home page

2003-01-31 Thread Ortwin Glück
Mike Moran wrote: http://www.innovation.ch/java/HTTPClient/urlcon_vs_httpclient.html Interesting fact: Oracle is using this library for their application server. They ship it also with the Oracle 9i Client. It can be found in $ORACLE_HOME/lib/http_client.jar. Maybe one day they will change t

java.net.UnknownHostException

2003-01-31 Thread Divakar Satyanarayan
Hi, I am using HTTPConnection to get a connection to an URL. It works fine when I give just the IP address but when I specify the full path it gives me following exception java.net.UnknownHostException: 201.173.335.213//x at java.net.InetAddress.getAllByName0(InetAddress.java:571

RE: [PATCH] PostMethod & PutMethod revision (take 2)

2003-01-31 Thread Kalnichevski, Oleg
>1) I'm sure stuff like this is unintentional: >- * @author Ortwin Glück >- * @author mailto:[EMAIL PROTECTED]";>Mike Bowler >+ * @author Ortwin Glück That was actually a part of a massive Russian conspiracy intended to undermine the existing world order >2) I thought we had deprecated the "u

Re: java.net.UnknownHostException

2003-01-31 Thread Michael Becke
Please take a look at the following URL as an example of how to use HttpClient to read from a server: http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/ BasicAuthenticatonExample.java?rev=1.3&content-type=text/vnd.viewcvs- markup It seems that the problem is that you are a

RE: java.net.UnknownHostException

2003-01-31 Thread Divakar Satyanarayan
The first thing I did was to run the sample code PostXML.java. But it gave me a run time exception Exception in thread "main" java.lang.IllegalArgumentException: host parameter is null at org.apache.commons.httpclient.HttpConnection.(HttpConnection.java:217) at org.apache.commons.

RE: Bug in PUT method with TC

2003-01-31 Thread Kalnichevski, Oleg
Juergen I have tried my best to reproduce the alleged bug in my development environment (which, I have to say, does not include Jakarta-Slide). Please see the test cases I have used. It's been run with the following system properties to generate the following dump -Dorg.apache.commons.logging.

Re: java.net.UnknownHostException

2003-01-31 Thread Michael Becke
Are you using the most recent code from CVS? I just tried this example and it worked for me. Did you make any changes to the example? Mike Divakar Satyanarayan wrote: The first thing I did was to run the sample code PostXML.java. But it gave me a run time exception Exception in thread "main"

RE: java.net.UnknownHostException

2003-01-31 Thread Divakar Satyanarayan
Yes I made some modification & below is my code. I have got it working with the following code but request is getting timed out. public static void main(String[] args) throws Exception { String strURL = "http://201.173.335.213//x

Re: java.net.UnknownHostException

2003-01-31 Thread Michael Becke
I would suggest something more like this: public static void main(String[] args) throws Exception { String strURL = "http://201.173.335.213//x";; PostMethod post = new PostMethod(strURL); inputXML(); post.setRequestBody("inputXml="+sb

Re: [PATCH] PostMethod & PutMethod revision (take 2)

2003-01-31 Thread Jeffrey Dever
Internally we should just have one "body" datamember, which would be an InputStream. When setting the request body, if the streamBody() form is used, its trivial. When the stringBody() is used, create a StringInputStream which is easy. When the parametersBody() form is used, url encode it

RE: [PATCH] PostMethod & PutMethod revision (take 2)

2003-01-31 Thread Kalnichevski, Oleg
Jandalf Got ya. I have just managed to reproduce the behaviour of "buggy" servers that ignore Expect: 100-continue header and discovered BIG FAT NASTY bugs in my code. So, I am currently busy busting those bugs. I'll proceed implementing your suggestions once all bugs are dealt with. I'll look

Re: [PATCH] PostMethod & PutMethod revision (take 2)

2003-01-31 Thread Michael Becke
Jeffrey Dever wrote: No redirection does work in our favour. Not sure what to do about the authentication issue. It would be really lame to post a multi-megabyte file only to be challenged for authentication and have to resend. We can buffer small bodies, but not big ones. With stringBody

Response Header ordering

2003-01-31 Thread Jeffrey Dever
HeaderSet is not a good name, because a set implies "unordered". Perhaps HeaderList, which could implement the List interface (but that might be a little fat). Or just plain Headers with custom methods as you described. Also might want a somthing like "String toExternalForm(String name)" me

DO NOT REPLY [Bug 16645] New: - SSL+NTLM Proxy + NTLM Web Server returns garbage

2003-01-31 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: [PATCH] PostMethod & PutMethod revision (take 2)

2003-01-31 Thread Kalnichevski, Oleg
The bugs turned out to be not of my making. There are too many spots in the HttpMethodBase class and its derivatives where statusLine is blindly assumed to be always non-null. Cheers Oleg -Original Message- From: Kalnichevski, Oleg Sent: Freitag, 31. Januar 2003 17:03 To: Commons HttpC

[PATCH] PostMethod & PutMethod revision (take 3)

2003-01-31 Thread Kalnichevski, Oleg
Bug fixes: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11095 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11653 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14731 Changelog: - Abstract EntityEnclosingMethod class has been introduced to encapsulate common behaviour of all entity

Minor bug in checkstyle.properties

2003-01-31 Thread Laura Werner
I just noticed a minor bug in checkstyle.properties. There are two settings for checkstyle.pattern.publicmember: checkstyle.pattern.publicmember=^f[A-Z][a-zA-Z0-9]*$ and checkstyle.pattern.publicmember=^[a-z][a-zA-Z0-9]*$ I'm not submitting a patch because I'm not sure which one is correct.

Re: [PATCH] PostMethod & PutMethod revision (take 3)

2003-01-31 Thread Michael Becke
Looks good, nice work. I only noticed a few things, mostly in regard to formatting, comments. - in EntityEnclosingMethod there are a few places when there is an extra carriage return between the Javadoc comment and the method. - PostMethod and EntityEnclosingMethod have some unused imports - t

Re: [PATCH] PostMethod & PutMethod revision (take 3)

2003-01-31 Thread Oleg Kalnichevski
Thanks, Mike Good points. I'll make corrections before committing the patch Enjoy your weekend Cheers Oleg On Fri, 2003-01-31 at 22:43, Michael Becke wrote: > Looks good, nice work. I only noticed a few things, mostly in regard to > formatting, comments. > > - in EntityEnclosingMethod there

Re: [PATCH] PostMethod & PutMethod revision (take 3)

2003-01-31 Thread Jeffrey Dever
The local and webapp tests are fine here (except that one timeout issue that has been around for a while). There are a few things that could be tweaked, but please submit the patch so we can all benefit from it. Very high quality, great work! Jandalf Kalnichevski, Oleg wrote: Bug fixes: ht

Re: Minor bug in checkstyle.properties

2003-01-31 Thread Jeffrey Dever
Squashed it. Good catch. Laura Werner wrote: I just noticed a minor bug in checkstyle.properties. There are two settings for checkstyle.pattern.publicmember: checkstyle.pattern.publicmember=^f[A-Z][a-zA-Z0-9]*$ and checkstyle.pattern.publicmember=^[a-z][a-zA-Z0-9]*$ I'm not submitting a p

DO NOT REPLY [Bug 16432] - Error from maven when generating the task list

2003-01-31 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 11095] - PostMethod - Chunked requests are not supported at the moment.

2003-01-31 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 14731] - Redirection of a POST method

2003-01-31 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 11653] - PUT method blocks against older servers

2003-01-31 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: [PATCH] PostMethod & PutMethod revision (take 3)

2003-01-31 Thread Jeffrey Dever
Hey Oleg. I'm Playing with PostMethod writing some tests. It looks really good in there, and will be even better after get rid the deprecated stuff. I had a few changes, and a few questions: 1) PostMethod.generateRequestBody() This method just url encodes the parameters. In the 5000 lines of