Tag: httpclient
All the articles with the tag "httpclient".
Using REST in NAnt with a custom HTTP Task
Published:3 min readThis article describes how to make HTTP requests to a REST web service from a NAnt script using a custom task. The HttpClient class from the WCF REST Starter Kit is used, and the source code is available on GitHub. The assembly has been merged with the Microsoft.Http.dll dependency making deployment easier.
C# wrapper for the Google AJAX Language API
Published:11 min readThis article discusses a C# wrapper for the Google AJAX Language API, which allows users to translate text using a REST based web service API. The WCF REST Starter Kit and DataContractJsonSerializer are used to make working with the API easier. The code is accompanied by a Visual Studio 2008 solution with full source code.
Introduction to the HttpClient
Published:7 min readThe HttpClient class simplifies interaction with REST web services by providing constructors, a Send method, extension methods, and methods to receive content, use headers, and send requests asynchronously.