Hi,
using the HttpClient i am calling the api, i am sending the cookie using the WebRequestHandler.cookiecontainer, it is sending properly and getting the response. but when i am hitting the https secured apis it is not sending the cookie value.
code:
WebRequestHandler certificateHandler = new WebRequestHandler();
certificateHandler.CookieContainer = cookiesContainer;
certificateHandler.UseCookies = true;
certificateHandler.ClientCertificateOptions = ClientCertificateOption.Manual;
X509Certificate certificate = GetMyX509Certificate();
certificateHandler.ClientCertificates.Add(certificate);
using (HttpClient httpClientObj = new HttpClient(certificateHandler))
{
}
this is working fine for http api, but it is not sending the cookie when i am hitting a secure api(https).
i am not sure what is the exact problem,
your help will be highly appreciated.
Advance Thanks,
Vijay