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.
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.
Comment