[02/03] Download file from Web
Hi,
I am trying to create an application which will download the files from web. I tried using the codeback sample application as per http://www.vbforums.com/showthread.php?t=396260
however, it is not working on my case.
It works great if the file name is given properly in url for example,
http://www.somedomain.com/somefile.zip
but, in my case i do not know the file name and extension. The url I use will be like
http://www.somedomain.com/alkikdls
if we execute the above url somefile.zip will be downloaded.
The above urls are fake. if you need real urls please let me know.
Please help.
Re: [02/03] Download file from Web
if you can provide a real URL then I can look at it for you, but there may be a server side redirect going on, which could make it pretty hard to do.
Re: [02/03] Download file from Web
Re: [02/03] Download file from Web
it looks to me like the direct download link (at least when I went to the site) was actually this:
http://www.yousendit.com/transfer.ph...Q1BlaFEwTVE9PQ
Re: [02/03] Download file from Web
if it is the case can't we download via code ?
Re: [02/03] Download file from Web
my guess is you can, but you would have to automate the site using a browser control or just HTTP request and response classes to get to the point where you can parse the link and then direct download it via code.
It is probably possible, just not cut and dry easy unfortunately. Also if they ever change any of the site logic, it could break your code.
Re: [02/03] Download file from Web
Try hosting the file on a direct link site, I use http://www.fileburst.com/ for my files I advise you do the same, great speeds and it doesn't cost much :)
Re: [02/03] Download file from Web
you could even get a godaddy package and host your own files.
It is about 50 bucks per year through them to get a domain name and the economy windows hosting, which gets you 10GB of storage and 300GB of bandwidth.
Then you can also do things like host ASP.NET sites or webservices on there as well if you wanted to work with any of .NET's web based stuff.