Announcement

Collapse
No announcement yet.

Weird internet connection results with %INTERNET_DEFAULT_HTTPS_PORT

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

    Weird internet connection results with %INTERNET_DEFAULT_HTTPS_PORT

    I am sending a JSON string to a website, and everytihng works in my program when i use port 80, but In the following line, replacing it to %INTERNET_DEFAULT_HTTPS_PORT (port 443) forwards me to a weird search website like the ones that appear when a domain has expired.

    Code:
    ' Create an internet Connection.
    hConnection = InternetConnect(hInternet, byval varptr(wzDomain), %INTERNET_DEFAULT_HTTP_PORT, byval 0, byval varptr(wzVersion), %INTERNET_SERVICE_HTTP, 0, 0)


    Has anybody experienced this? Any suggestions as to what i could try?

    Sorry about the post name, i didnt know how to name it.
    www.patreon.com/pluribasic

    #2
    The website is not configured to use HTTPS, only HTTP.

    Don't use %INTERNET_DEFAULT_HTTPS_PORT
    =========================
    https://camcopng.com
    =========================

    Comment


      #3
      Originally posted by Stuart McLachlan View Post
      The website is not configured to use HTTPS, only HTTP.

      Don't use %INTERNET_DEFAULT_HTTPS_PORT
      But it is. When i access the same domain and path in the browser it complains that i didnt send any JSON data.
      www.patreon.com/pluribasic

      Comment


        #4
        I got it. I forgot to add %INTERNET_FLAG_SECURE to the HttpOpenRequest() call.
        www.patreon.com/pluribasic

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎