Sample code for setting header and body of request to be sent to remote server.

2004-02-25 Thread Saifadam Pathan
Hi everyone,     can someone please help me to do the following:   I wish to create a connection and send a request to an website(using get or post ,etc methods). bUt most importantly, i dont know is how do i form The header and the parameters and etc... for the request and then send it.  

DO NOT REPLY [Bug 27242] New: - "Socket Closed" IOException thrown by HttpConnection

2004-02-25 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: Connecting through Proxy

2004-02-25 Thread Michael Becke
Hi Saifadam, 1) Thanks for responding. I am new to using httpclient, but in our case, I observed that if i do comment the preemptive authentication code, then the executeMethod( ) causes a "HttpRecoverableException" exception to be thrown. Also I observed the following line at the console where

DO NOT REPLY [Bug 27237] - ArrayIndexOutOfBounds Exception on invalid content-length

2004-02-25 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: Connecting through Proxy

2004-02-25 Thread Saifadam Pathan
Hi Oleg, 1) Thanks for responding. I am new to using httpclient, but in our case, I observed that if i do comment the preemptive authentication code, then the executeMethod( ) causes a "HttpRecoverableException" exception to be thrown. Also I observed the following line at the console where the ex

DO NOT REPLY [Bug 27237] - ArrayIndexOutOfBounds Exception on invalid content-length

2004-02-25 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 27237] - ArrayIndexOutOfBounds Exception on invalid content-length

2004-02-25 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 27237] New: - ArrayIndexOutOfBounds Exception on invalid content-length

2004-02-25 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: problem posting xml, with size larger than 8196 or 4319 bytes...

2004-02-25 Thread Kalnichevski, Oleg
Koutsomboris, Your servlet code appears to be causing the problem > ServletInputStream servInStream = null; > ByteArrayOutputStream baos = null; > ByteArrayInputStream bais = null; > byte[] bufByteArray = null; > String msgIN = null; > servInStream = reques

RE: streaming request body

2004-02-25 Thread Kalnichevski, Oleg
> It's always good to have things configurable :-) John, feel free to file a feature request with the Bugzilla if you want to keep track of the issue resolution and provide us with some feedback. http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Commons I deem this feature fairly easy to

Re: streaming request body

2004-02-25 Thread John Keyes
On 25 Feb 2004, at 14:43, Ortwin Glück wrote: John Keyes wrote: My point here is that if I have X requests then there can be X * CONTENT_LENGTH_CHUNKED bytes in memory at one time. I see what you mean. But the above calculation does not make sense: CONTENT_LENGTH_CHUNKED is a (negative) integer

RE: Connecting through Proxy

2004-02-25 Thread Kalnichevski, Oleg
Just one (relatively minor) addition: only Basic authentication can be used preemptively. NTLM authentication scheme is stateful (that is, NTLM authentication process spans across several requests/responses) and therefore NTLM credentials cannot be used outside a valid authentication context.

Re: Connecting through Proxy

2004-02-25 Thread Stefan Dingfelder
Hi Saifadam, that may depend upon the proxy also. If it is a Microsoft proxy you need to use NTLM authentification which requires NTCredentials. http://jakarta.apache.org/commons/httpclient/authentication.html contains some further infos. At least that was what I needed. Just my two cents, Stef

problem posting xml, with size larger than 8196 or 4319 bytes...

2004-02-25 Thread Koutsomboris Tasos
Hello to all! Forgive me, if I have made a mistake, by posting my question to an irrelevant list, but this is my first try to use the benefits of the mailing list. I have just downloaded (from http://jakarta.apache.org/site/binindex.cgi) version 2 (final) of httpclient and I am trying to create a

Connecting through Proxy

2004-02-25 Thread Saifadam Pathan
I tried numerous suggestions from the list on how to authenticate via proxy when you try the httpclient. But noe worked. Then i ended up using these steps...   / */   HttpClient

Re: streaming request body

2004-02-25 Thread Ortwin Glück
John Keyes wrote: My point here is that if I have X requests then there can be X * CONTENT_LENGTH_CHUNKED bytes in memory at one time. I see what you mean. But the above calculation does not make sense: CONTENT_LENGTH_CHUNKED is a (negative) integer that signals to HttpClient that you do not wa