Guest User

Untitled

a guest
Jan 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. System.Net.WebClient webClient = new System.Net.WebClient();
  2. webClient.Headers.Add( "user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)" );
  3. Stream data = webClient.OpenRead( "http://www.sts.pl" );
  4.  
  5. The remote server returned an error: (403) Forbidden.
Add Comment
Please, Sign In to add comment