Created
September 14, 2021 18:13
-
-
Save rtrouton/1c0c9359e8946b38f26592d8e88f37fd to your computer and use it in GitHub Desktop.
Curl connection test for localhost on port 8080
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
username@computername ~ % curl -v localhost:8080 | |
* Trying ::1... | |
* TCP_NODELAY set | |
* Connected to localhost (::1) port 8080 (#0) | |
> GET / HTTP/1.1 | |
> Host: localhost:8080 | |
> User-Agent: curl/7.64.1 | |
> Accept: */* | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 200 OK | |
< Server: SimpleHTTP/0.6 Python/3.8.2 | |
< Date: Tue, 14 Sep 2021 18:02:32 GMT | |
< Content-type: text/html | |
< Content-Length: 86 | |
< Last-Modified: Tue, 14 Sep 2021 18:01:59 GMT | |
< | |
<html> | |
<head> | |
<title>Hello World</title> | |
</head> | |
<body> | |
Hello World | |
</body> | |
</html> | |
* Closing connection 0 | |
username@computername ~ % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment