Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created September 14, 2021 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/1c0c9359e8946b38f26592d8e88f37fd to your computer and use it in GitHub Desktop.
Save rtrouton/1c0c9359e8946b38f26592d8e88f37fd to your computer and use it in GitHub Desktop.
Curl connection test for localhost on port 8080
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