Announcement

Collapse
No announcement yet.

HTTP to HTTPS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP to HTTPS

    Hey guys,
    Had an old program that used http but of course, everything is now https. I get the error code 12007. What would I do with this?

    reply = HTTP.Submit("http://www.mysite.com/sms.php", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);

    Thanks guys.

  • #2
    Using this line I get this: result = HTTP.SubmitSecure("https://www.mysite.com/sms.php", myvalues, SUBMITWEB_GET, 20, 443, nil, nil);

    error 12029

    Comment


    • #3
      https://docs.microsoft.com/en-us/win...wininet-errors

      Error 12007: ERROR_INTERNET_NAME_NOT_RESOLVED - The server name could not be resolved.

      Error 12029: ERROR_INTERNET_CANNOT_CONNECT - The attempt to connect to the server failed

      These errors are pretty self-explaining, but anyway, a "server name could not be resolved" means that there is no such server registered in the DNS as specified in the URL parameter of HTTP.Submit(). You need to provide a valid server name when invoking this action and cannot make up an address; or use an IP address if your server does not have an entry in the DNS.
      The error "attempt to connect to the server failed" means exactly what it states. It can be that the server name is incorrect, it also can mean that there is no server listening on the port specified for the HTTPS protocol.

      An HTTP and an HTTPS server are not the same, they are actually two separate servers, listening on two different ports. If you have a web server running on the port 80, answering HTTP requests, this server will not answer to an HTTPS request - you actually need a second server for that.

      Ulrich

      Comment


      • #4
        Thank you Ulrich, I understand. This worked at one time, just not sure what I'm doing wrong now. More testing. thanks again.

        Comment

        Working...
        X