Answer the question
In order to leave comments, you need to log in
How to make an HTTP request to a site without a domain?
A request for sites with a domain works, but how to access a site without a domain?
For sites with a domain, I created a file where:
GET / HTTP/1.1
Host : domain
AND via netcat (IP domain) 80 < that file, I get
the answer But with a site without a domain, the response is
400 Bad RequestBad Request
Your browser sent a request that this server could not understand.
Apache/2.4.18 (Ubuntu) Server at trojandev.com Port 80
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question