Added a synchronous interface to the HttpClient