Is it possible to connect to a HTTP URL (for example, http://www.asdfg.com) over port 443?
Or only HTTPS URLs (for example, https://www.asdfg.com) can be connected through port 443?
I have a proxy server configured to allow only through port 443. When I try to connect to a HTTP URL, I get a 504 Gateway Timeout error
.
If I change the "http" to "https" in the URL and try to connect without proxy, I get the message "Requested resource not found".
What is the reason for this behavior?
(There are a lot of similiar questions here but mine is a very straight forward one.)
You could try http://mydomain.com:443/ which would hopefully force HTTP traffic over port 443.
However, you might find if your proxy is set up[ to only allow port 443, it also only allows HTTPS traffic in which case the above would not work.
Port can be reassigned to confuse people etc., so if you have a plain http server actually listening on port 443 then your http url should work, and vice versa. However the restriction you are facing may be more than just the port. Since ssl and http are different protocols, it is trivial to figure out that the packets are not http and your connection is thus blocked. It is probably easier to do ssl tunneling if your http traffic in this case.
The ports are merely "Assigned standards". The determining factor is the server software and the client software.