Hi, I'm Ray

I'm a software developer, full-time nerd and occasional human (while heavily caffeinated).

Blog (Month: January 2018)

  • 01 Jan, 2018
  • C#: Using HttpWebRequest to interact with websites
  • In this article I'm going to show the usage of the HttpWebRequest and HttpWebResponse classes and how you can use it to interact with websites. I'm going to be focusing on retrieving text responses (or the source code of a web pages) and not binary files. I'm also not going to be mentioning WebClient or HttpClient, they may be an article for another time. At the end of the article I'm sharing a helper class.

Copyright © 2014-2019 Ray Lam. All Rights Reserved.