Results 1 to 4 of 4

Thread: How to download using winsock

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Location
    Bhubaneswar
    Posts
    14

    Exclamation How to download using winsock

    Dear all

    any body help me..

    How to download any file using winsock in vb6??? give me the code..
    (but that website is password protected)

    i tried in like : http://username[email protected]/demo.jpg , but failed.


    plz. give me the VB 6 code?????

  2. #2
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Re: How to download using winsock

    by download do you mean transfer?

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How to download using winsock

    Many web sites do not rely on HTTP authentication, which is probably why that fails for you.

    Instead they use some form of application authentication, typically through an HTML logon form. You'll have to go through that path instead, which means at least two HTTP requests: one to logon and then one to retrieve data once logged on.

  4. #4
    Member
    Join Date
    Oct 2009
    Location
    UK
    Posts
    40

    Re: How to download using winsock

    Visual Studio 2008 (.NET 3.5) has comprehensive support for the HTTP protocol.

    You can use the HttpWebRequest and HttpWebRequest objects to retrieve a file from a web server without using sockets at all.

    VB 2008 express edition is a free download: http://www.microsoft.com/express/vb/Default.aspx

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