I am using the new framework socket to connect via https to a site with HTTP1.1 and SSL and it works fine but I am just wondering whether I still need to specify the Port to be 443 before creating the connection request or does it not matter?
If you are using the standard ports (80 and 443) the socket figures that out based on the protocol part of the URL. (Http:// or https://)
There isn’t a port property on the new HTTPSocket… Specifying https is enough for it to use port 443… I believe if you need to use an alternate port, you would just add it to the URL as usual https://example.org:8443/ but haven’t tried it…
That’s helpful to know, thanks for your comments.