Home > database > How to implement the HTTPS access certificate of illegal website?
How to implement the HTTPS access certificate of illegal website?
Time:10-08
Now need a website or to request, must be the HTTPS connection + POST way, PB inet does not support HTTPS (error code - 5 Unsupported secure (HTTPS) connection attempted), so must not use, If there is a legal certificate, you can use the Ole object. Microsoft XMLHttp to solve, we can see the document: http://blog.csdn.net/ldl22847/article/details/9662927
This development code:
Ole OleObject lole_tenyear//statement Lole_tenyear=CREATE oleobject Lole_tenyear. ConnectToNewObject (" Microsoft. XMLHttp ") Lole_tenyear. Open (" POST ", ls_url, false) Lole_tenyear. SetRequestHeader (" the content-type ", "application/x - WWW - form - urlencoded") Lole_tenyear. SetRequestHeader (' Content - Length, the string (len (ls_data))) Lole_tenyear. Send (ls_data)//the other party is not a legal certificate, will collapse Ls_response=lole_tenyear. The responseText//returns the IF lole_tenyear. The Status & gt; THEN=300 MessageBox (" HTTP request failed: ", lole_tenyear. StatusText, the Exclamation! , OK! END the IF Destroy lole_tenyear
However, the site had no legal certificate, and run to "send (ls_data)" I snapped, reason is that the certificate is not legitimate, is there any way you can ignore certificate is not legitimate, normal execution? Consult expert guidance,
CodePudding user response:
What you said is refers to a fault, what seems to be a runtime error, it should not be a certificate of problem, is your access to the resource does not exist,
CodePudding user response:
API or use other ways to deal with, OLE need legal certificate, this is a requirement for MS