[appengine-java] Re: I'm getting a already connected exception when I setRequestMethod("GET") on my HttpURLConnection

2009-10-28 Thread Bourke Floyd IV
I think I figured it out. While I was debugging I would break before the disconnect was called in my finally block, then resend a new request (thus the connection was already connected). Being able to Set the RequestMethod is important to me, despite the fact that get is the default. On Oct 26,

[appengine-java] Re: I'm getting a already connected exception when I setRequestMethod("GET") on my HttpURLConnection

2009-10-27 Thread Nick
For an http GET I didn't need to call setRequestMethod or cast to HttpURLConnection String response = null; int timeoutmili = 5000; URL url = new URL(urlStr); URLConnection conn = url.openConnection(); conn.setConnectTimeout(timeoutmili); conn.setReadTimeout(timeoutmili); rd = new BufferedReader(