|
-
Aug 15th, 2008, 01:15 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Aug 15th, 2008, 01:21 PM
#2
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.
-
Aug 18th, 2008, 04:24 AM
#3
Thread Starter
Hyperactive Member
Re: [02/03] Download file from Web
-
Aug 18th, 2008, 09:12 AM
#4
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
-
Aug 20th, 2008, 09:35 AM
#5
Thread Starter
Hyperactive Member
Re: [02/03] Download file from Web
if it is the case can't we download via code ?
-
Aug 20th, 2008, 12:43 PM
#6
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.
-
Aug 20th, 2008, 12:49 PM
#7
Lively Member
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
-
Aug 20th, 2008, 01:15 PM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|