Home > Software engineering >  . WinHttp WinHttpRequest. 5.1 collecting HTTPS web tips "certificate is invalid or incorrect au
. WinHttp WinHttpRequest. 5.1 collecting HTTPS web tips "certificate is invalid or incorrect au

Time:11-16

 
Url="https://www.zgzjzj.com/" this web site is very special, must add the certificate to collect
Set the Http=server. Createobject (" WinHttp WinHttpRequest. 5.1 ")
Http. SetClientCertificate (" LOCAL_MACHINE/AddressBook/*. "zgzjzj.com" this sentence has no effect no matter how to modify the
Http. Option (6)=0
'Http. Option (4)=13056' if this "ignore error", is to collect, but the web is "405 Not Allowed"
Http. Open "GET", url, false
Http. SetRequestHeader "cookie", cookie1
Http. SetRequestHeader "Referer", url
Http. Send

Above this code is to use asp web language (script), other programming languages as long as the collection this website will also encounter the same problem,
Met a web page, use the server. Createobject (" WinHttp WinHttpRequest. 5.1 ") or Server. CreateObject (" MSXML2. ServerXMLHTTP. 5.0 ") components are unable to get website source file, such as tips:
WinHttp WinHttpRequest errors' 80072 f0d '
Certificate of the author is invalid or incorrect

If add Http. Option (4)=13056 this sentence (ignore the errors and submit as usual), although can submit content, but the return is "Not Allowed" 405, apparently because no send certificates, lead to cannot be verified,

How should modify to correct collected the website source file? Please master modification method is given after testing! Thank you very much!

CodePudding user response:

Does anyone know?

CodePudding user response:

Does anyone know?

CodePudding user response:

I don't know, look at the situation is you need to specify the certificate to access, not played,
  • Related