Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebClient client = new WebClient() { Encoding = Encoding.UTF8 };
- client.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36");
- byte[] buffer = client.DownloadData(URL);
- client.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36");
Add Comment
Please, Sign In to add comment