Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET in JAVA/JSP 1

Status
Not open for further replies.

volcano

Programmer
Aug 29, 2000
136
HK
Hello, I am not sure if I should place my question here. If there is another better forum in this site, pls guide me there, thanks!

My question is that I have a task that I need to get a file through a URL. The general URL looks like this:
Previously we can manually type this URL in browser and save the file in local HD. Now er would like to run a program or script to get the file automatically. Do you think in what way I can do this? I prefer to using JAVA or JSP to do this. In Coldfusion, there seems to be a tag named CFHTTP or CFHTTPPARAM to do the similar job; but in JAVA/JSP I have no idea. Do you have any suggestion?

Thanks a lot!
 
look at the class URLConnection. Once connected, you can save the http response as a file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top