CSharp HttpClient by CodeScales.com

CodeScales C# HttpClient is An HTTP client library with a very simple API, written in CSharp (.Net 2.0) for sending HTTP requests and receiving HTTP responses.

You can use CodeScales HttpClient to send files and HTML-forms via HTTP, with very minimal coding, and it is much simpler to use than the HttpWebRequest provided with the .Net library.

This library was inspired by the JAVA HttpClient library, and has a very similar API.

How do I use it?

Just download the DLL from the download page.
If you are using .Net 4.0 or VS2008/VS2010, you also need to download this DLL.

What can you do with it?

  1. Send GET requests.
  2. Send POST requests with parameters, using Url-Encoded Entity.
  3. Upload Files to an HTTP server, using a Multipart Entity.
  4. Send Post request with parameters, using Multipart Entity.
  5. Control the redirect behavior of the client, using HttpBehavior.
  6. Use as many parallel connections (sockets) as you need, using the default HttpConnectionFactory.
  7. Use a proxy server that does not need a password

What HttpClient is NOT

HttpClient is NOT a browser. It is a client side HTTP transport library. HttpClient’s purpose is to transmit and receive HTTP messages. HttpClient will not attempt to cache content, execute javascript embedded in HTML pages, try to guess content type, or reformat request / redirect location URIs, or other functionality unrelated to the HTTP transport.

How much does HttpClient cost?

It Costs Zero$, nothing, ziltch, goornisht. CodeScales HttpClient is an open-source development project and is published under the Apache License 2.0. This means that it is absolutely free, and you can access the source code at the project’s Google Code site.
We would encourage you to give us some feedback via the comments in this site, or if you have found any BUGS you can report them directly at the Google Code site here.

Where can I download HttpClient from?

You can download if from CodeScales Google Code Download Page.

How can I contribute?

There are a number of ways you can help me with this project:

  • Let your friends know about this project, send them a link or post the CodeScales.com link on your website.
  • If you found the HttpClient library useful, let me know about it (via comments, or email me at yaron@codescales.com)
  • If you are a C# developer, you can develop new features for the HttpClient library, or fix existing bugs. Please email me at  yaron@codescales.com if you wish to do so.
  • You can post feature requests, and bug reports in the Google Code site.