See an article I wrote in UTMag in March 2004 (
http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,,605) that retrieves images from the Web.
>Hi everybody!
>
>Yeah, I'm alive. Just been really busy lately. That's why I haven't been around much. :)
>
>I have a question here. In VFP, I used to get files through http using some code like this:
>
>
>loHttp = CREATEOBJECT("msxml2.xmlhttp.4.0")
>loHttp.open("GET", "http:\\SomeServer\SomeFile.zip")
>loHttp.send()
>STRTOFILE(loHttp.responseBody, "c:\SomeFile.zip")
>
>
>How can I accomplish that kind of thing in .NET?
>
>Another thing that I also have to do is to programmatically authenticate on the server. When I manually navigate to the file, I must provide username/password. How do I do that programmatically?
>
>TIA
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com