Results 1 to 3 of 3

Thread: Login to a third party website and download a file

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Login to a third party website and download a file

    Hello Everybody,

    I have subscription to a website where I can login and download files. These files are secured so I cannot download them with a direct link.

    Is there any way that I login programmatically and download files from http to my server without any user involvement? They do not offer any API or interface to communicate with.

    Thanks.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Login to a third party website and download a file

    The links are presumably generated on demand. You could use a WebClient or HttpWebRequest/HttpWebResponse objects to login and get the data that would normally be sent to a web browser and then extract the link from that data. You should start by looking for examples that use those classes to get a feel for how they work and then look at using them in your specific situation.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Login to a third party website and download a file

    But I have subscription-based login information not the http login information. Let me try if it will work with WebClient but I think it won't. Right now when I try to fetch say http://www.xyz.com/file.csv it gives me html of the login page instead of the csv file. I think this is the expected behaviour.

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