add HttpClient implemtation using pthread