Need help downloading a web page with cookie

Aug 25 2004 10:47 PM
Here's my code: Dim wc As NEW System.Net.WebClient wc.DownloadFilehttp://www.tvguide.com/search/listings/SearchResults.asp?search=seinfeld", "c:\sein.htm") What this statement should do is download the search results for Seinfeld and save it to sein.htm It does download. However, when I open c:\sein.htm I get a registration page. The reason why is because a persistent cookie is required. I know it is possible to pass the cookie to tvguide.com as well as download the htm (internetgetcookie, httpwebrequest? something like that) but I haven't the slightest clue on how to do it. Anybody know of a way? I am still new to VB.NET, so I will probably need a step by step way of doing this.