Re: HttpUrlConnection.getInputStream() returns empty

2004-07-29 Thread Honey George
Hi David, My environment is Tomcat 4.1.18 + Sun JDK 1.4. I do not use JSP and in my case a servlet invokes a java class. Now I got solution to my problem. The issue was that the InputStream.avaulable() was returning 0 even through there is byates to read. My old code for reading bytes from the

Re: HttpUrlConnection.getInputStream() returns empty

2004-07-28 Thread David Goodenough
Could you list your operating environment. I have (see my other note) a very similar problem, and I think that by working out which components are common to both of us we can narrow this down much quicker. I am using 5.0.27 Tomcat (I also used 4.1 and got the same problem), I am using JSPs with

Re: HttpUrlConnection.getInputStream() returns empty

2004-07-27 Thread Reynir Þór Hübner
hi, you could maybe try somthing like the following : try { String str_url = https://www.domain.com;; URL urlid = new URL(str_url); HttpsURLConnection conn = (HttpsURLConnection)urlid.openConnection(); conn.setRequestMethod(GET); conn.setDoOutput(false); out.write(RESPONSECODE = +

Re: HttpUrlConnection.getInputStream() returns empty

2004-07-27 Thread Honey George
Hi reynir, I have made the changes as per you suggestion and I am getting the response code as 200. But still the inputstream returns empty, is.available() returns 0 bytes. thanks, - george --- Reynir_Þór_Hübner [EMAIL PROTECTED] wrote: hi, you could maybe try somthing like the following :

Re: HttpUrlConnection.getInputStream() returns empty

2004-07-27 Thread David Goodenough
I am hitting what looks like exactly the same problem. I have a JSP application which uses the io tags to submit XMl requests to a servlet running on the same machine. The XML servlet carries on running quite happily even once the errors start from the webUI which is the JSP bit. Once the

HttpUrlConnection.getInputStream() returns empty

2004-07-26 Thread Honey George
Hi All, I am facing a problem with HttpUrlConnection in Tomcat. I wanted to extract the contents of an https enabled URL, actually from the same site where my application is running(Will not try to access external URLs). My program will look like this.