aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes http redirected downloads Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "http redirected downloads" Watch "http redirected downloads" New topic
Author

http redirected downloads

Tay Thotheolh
Ranch Hand

Joined: Aug 07, 2008
Posts: 84
Hi. I decided to gain some experience by creating a simple download manager. I noticed that some download links on the internet are not direct links like "http://xxx.com/abcdef.iso" but some links like to have "http://xxx.com/sjjf?bjr=jfbf" some funny query string and redirect users to their downloads.So how do I handle the redirected downloads link ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35254
    
    7
Your HTTP handling code would need to detect a Redirect response, and respond to that by issuing a new request for the new URL. I think the Apache Commons HttpClient library can be set to follow redirects automatically.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http redirected downloads
 
Similar Threads
how to send XML via HTTPPost
Can�t find download link for JBuilder 2007 Enterprise Trial
where and when to download Jbuilder 2007 evaluation?
For JSTL what should i download
Downloading a file using URL, URLConnection classes