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?????
Printable View
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?????
by download do you mean transfer?
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.
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