Announcement

Collapse
No announcement yet.

HTTPS plugin for Setup Factory?

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

  • HTTPS plugin for Setup Factory?

    Should the HTTP actions work with an HTTPS site? I had this code for the old HTTP site:

    Debug.ShowWindow(true);
    sz = HTTP.GetFileSize("http://www.mysite.com/files/testfile.txt", MODE_BINARY, 10, 80);
    Debug.Print("Size="..sz.."\r\n");
    -- displays the correct size of the file: 20


    Now it is an HTTPS site so I changed the code to this:

    sz = HTTP.GetFileSize("https://www.mysite.com/files/testfile.txt", MODE_BINARY, 10, 443);
    Debug.Print("Size="..sz.."\r\n");
    err = HTTP.GetHTTPErrorInfo();
    Debug.Print("Number="..err.Number..", Status="..err.Status.."\r\n");


    This time it displays size= -1 , Number= 12007 , Status= 200

    Any idea how I get the HTTP actions to work with an HTTPS site, or is that not possible?

    PS - I am using the latest SUF9 on Windows 10 x64.
    Last edited by commhorizons; 06-14-2020, 10:46 AM.

  • #2
    I suppose that you might have better luck with this:

    Code:
    HTTP.GetFileSizeSecure("https://www.mysite.com/files/testfile.txt", MODE_BINARY, 10, 443);
    Any idea how I get the HTTP actions to work with an HTTPS site, or is that not possible?
    Many of the actions have "secure" alternatives, for encrypted HTTP operations, please use them instead when accessing "HTTPS" URLs.

    Ulrich
    Last edited by Ulrich; 06-15-2020, 07:41 PM.

    Comment

    Working...
    X