views:

136

answers:

1

I use WebClient from System.Net Namespace of Visual Studio 2008 to download the HTML content.

It done well with normal website but with some 4rum that require authorization such as warez-bb.org, it always return the HTML of the login page.

I wonder if there is a way to send the username and password to the WebClient?

A: 

See this post: http://stackoverflow.com/questions/793755/how-to-fill-forms-and-submit-with-webclient-in-c

You will likely need to use HttpWebRequest and submit form POST data manually.

joshcomley