Results 1 to 8 of 8

Thread: [02/03] Download file from Web

  1. #1

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    [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.
    Kanna

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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.

  3. #3

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: [02/03] Download file from Web

    Kanna

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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

  5. #5

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: [02/03] Download file from Web

    if it is the case can't we download via code ?
    Kanna

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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.

  7. #7
    Lively Member
    Join Date
    Jul 2008
    Posts
    107

    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

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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
  •  



Click Here to Expand Forum to Full Width