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

CodePudding user response:

reference 1st floor qiuvsking 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 resources does not exist,
is not the resource does not exist, only because the resources of the certificate,

CodePudding user response:

refer to the second floor PackChen response:
API or use other ways to deal with, OLE need legal certificate, this is a requirement for MS


Well, just don't know other way,

CodePudding user response:

reference 4 floor xufxuf response:
Quote: refer to the second floor PackChen response:

API or use other ways to deal with, OLE need legal certificate, this is a requirement for MS


Well, just don't know any other way,

Yes, written in VS a COM, and then PB calls, can only seem to such

CodePudding user response:

In lole_tenyear. Open (" POST ", ls_url, false), add one line of code
Lole_tenyear. Option [4]=13056

CodePudding user response:

refer to 6th floor pb8 response:
in lole_tenyear. Open (" POST ", ls_url, false), add one line of code
Lole_tenyear. Option [4]=13056

It doesn't work, run to the complains here:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The original concept application execution error (R0036)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The Application terminated.

Error: the Name not found accessing external object property option at line 74 in ue_post_retstr_ansi event of object nvo_internet_main.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sure
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


No under lole_tenyear opiton this property,
I also tried lole_tenyear. Object. The Option [4]=13056 also not line, no object this property,
Very desperate,

CodePudding user response:

The url and the data provide the simulation I submit a try, used a similar approach, HTTPS communication without pressure

CodePudding user response:

https://blog.csdn.net/pcwe2002/article/details/103047572
This can be accessed
  • Related