Web Services : Understanding C# HttpClient

C# has a HttpClient class, which should be easier to use, support async programming and allow users to set any headers without reverting to some workaround code (cf. WebClient and its underlying classes).

It is necessary to understand this class properly in order to do serious coding for Web Service development.


  1. http://d-fens.ch/2014/04/12/httpclient-and-how-to-use-headers-content-type-and-postasync/
  2. http://stackoverflow.com/questions/10679214/how-do-you-set-the-content-type-header-for-an-httpclient-request
  3. https://msdn.microsoft.com/en-us/library/hh944521(v=vs.118).aspx
  4. https://www.jayway.com/2012/03/13/httpclient-makes-get-and-post-very-simple/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s