I was expecting this code to return a 404, however it produces the output :
\"Response code is 200\"
Would it be possible to learn how to differentiate between e
You could:
This is a bit low level however and will add complexity since you will need to make a simple GET request through the socket. Then validate the response so you're sure that its actually a HTTP server running on port 80.
NMap might be able to help you here.