Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.Net.WebClient webClient = new System.Net.WebClient();
- webClient.Headers.Add( "user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)" );
- Stream data = webClient.OpenRead( "http://www.sts.pl" );
- The remote server returned an error: (403) Forbidden.
Add Comment
Please, Sign In to add comment