2 ms·
> When doing HTTP request to IP you specify the domain you want to connect to No, you make HTTP requests to an IP, not a domain. You convert the domain name to
by paxys 2y ago
> When doing HTTP request to IP you specify the domain you want to connect to
No, you make HTTP requests to an IP, not a domain. You convert the domain name to an IP in an earlier step (via a DNS query). You can connect to servers using their raw IPs and open ports all day if you like, which is what's happening here. Yes servers will (likely) reject the requests by looking at the host header, but they will still receive the request.