Web Connection
How to call Https url
Gravatar is a globally recognized avatar based on your email address. How to call Https url
  Luca
  All
  Nov 10, 2020 @ 10:36pm

Dear Rick,
I used the following procedure to triggers a webpage with maintenace facility.
This run on a webserver:

m.loXML = Createobject("MSXML2.ServerXMLHTTP.6.0") 
m.lcFullURL = "http://localhost/Tlk/Monitor.wc?Action=Exit" 
m.loXML.Open("POST", lcFullURL, .F.)
m.loXML.SetRequestHeader("Content-Type", "application/xml")
m.loXML.Send("")

Yesterday we moved from http to https and the procedure get an error now.
I changed "http://localhost" with "https://localhost" but without success, I think there are SSL limitations now.
The error is "OLE IDispatch exception code 0 from mxml6.dll: the connection to the server was terminated abnormally"
Still I can send a successful request of the same URL with a browser.
Please how to call a https url programmatically from a FoxPro application?
Thank you very much for support

Gravatar is a globally recognized avatar based on your email address. re: LetsEncrypt-Win-Simple
  Rick Strahl
  Luca
  Nov 11, 2020 @ 12:38am

You have to use the Domain Name. The certificate is not valid for localhost, only for the specific domain you registered.

If you're using IIS or IIS Express or the Web Connection Web Server you can configure those services to use locally signed Certificates that work with localhost.

There's lots of information available online on how to do it:

Here's one place I've written about this:

Using IIS to create a self-signed Certificate

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: LetsEncrypt-Win-Simple
  Luca
  Rick Strahl
  Nov 11, 2020 @ 12:47am

Dear Rick,
unfortunately I get the same error, also with domain name 😦

		m.loXML = Createobject("MSXML2.ServerXMLHTTP.6.0") 
		m.lcFullURL = "https://crm.dea.group/Tlk/Monitor.wc?Azione=Exit" 
		m.loXML.Open("POST", lcFullURL, .F.)
		m.loXML.SetRequestHeader("Content-Type", "application/xml")
		m.loXML.Send("")

The call to that url is only to close Web Connection application EXE with CLEAR EVENTS command and to run maintenance utility from another EXE.
Can I close Web Connection application EXE in other ways?
Many thanks

© 1996-2024