• Post Reply Bookmark Topic Watch Topic
  • New Topic

make a network call to an website?

 
wei liu
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if my question is best match to here, but I hope someone can provide me the direction to solve this problem

I am writing a web application, there is one function which is to call



to get a xml file as return if you key in the url in webbrowser.

.

I was wondering how to make request in my servlet or JSP page to above web URL and receive the expect xml code from that URL as response either as stream or other form.

thanks in advance for the help.





 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at HttpURLConnection and see if that does what you are after.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!