Thread: http request
View Single Post
  #12 (permalink)  
Old 04-08-2008, 11:50 AM
Eranga's Avatar
Eranga Eranga is online now
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,604
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Nice work, but no need to worry that much pal. Here is my code.

Code:
try{ URL myRequest = new URL(buildRequestURL()); //URL myRequest = new URL(requestURL); BufferedReader inMessage = new BufferedReader(new InputStreamReader(myRequest.openStream())); String httpReplay = inMessage.readLine(); System.out.println(httpReplay); return httpReplay; } inMessage.close(); } catch(MalformedURLException ex){ System.out.println(ex); } catch(IOException ex){ System.out.println(ex); }
That's all. The replay caught here as a String.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote