What makes this HTTPS WebRequest time out even though it works in the browser?

前端 未结 6 1328
挽巷
挽巷 2020-12-04 23:05

Here\'s my request:

var request = (HttpWebRequest) WebRequest.Create(\"https://mtgox.com/\");
request.CookieContainer = new CookieContainer();
request.AllowA         


        
6条回答
  •  情书的邮戳
    2020-12-04 23:14

    Most likely the HTTPS client can't validate the certificate chain presented by this server, for example due to missing root certificate or inaccessible OCSP responder. I.e. there can be something different configured in the browser and in HTTPS client you use.

    As one of the options you can take a trial version of our HTTPBlackbox components and try to connect using TElHTTPSClient. It will give you detailed error information (in case of error) so you will be able to determine, what's wrong with HttpWebRequest.

提交回复
热议问题