Click here to Skip to main content
15,905,427 members

Comments by swapsun (Top 3 by date)

swapsun 22-Feb-16 16:34pm View    
Thank you for your reply. Had to do the same.
swapsun 23-Dec-15 14:04pm View    
I tried doing that too.
swapsun 23-Dec-15 13:34pm View    
I think that helped, Thanks a lot, but now I am stuck on 404 error.

HttpClientHandler authtHandler = new HttpClientHandler()
{
Credentials = CredentialCache.DefaultNetworkCredentials
};
using (HttpClient confClient = new HttpClient(authtHandler))
{

confClient.BaseAddress = new Uri(baseurl);
confClient.DefaultRequestHeaders.Accept.Clear();
confClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

response = confClient.GetAsync(serviceUrl).Result;

if (response.IsSuccessStatusCode)
{