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 :
>
> 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 = " +
> conn.getResponseCode()+"\n<br>");
> BufferedReader in1 = new BufferedReader(new
> InputStreamReader(conn.getInputStream()));
> String line;
> while ((line = in1.readLine()) != null)
> out.write(line +"\n");
> }
> catch (Exception e)
> {
> e.printStackTrace(System.out);
> }
>
> hope it helps
> -reynir
>
>
___________________________________________________________ALL-NEW Yahoo! Messenger -
all new features - even more fun! http://www.allnewmessenger.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]