Created
February 24, 2014 04:44
-
-
Save kyleterry/9182079 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[ OK kyle@insomnia:~ ] | |
$ curl -vvvv -X POST -d 'testing' http://localhost:8080/test --header "Content-Type: text/html" | |
* Hostname was NOT found in DNS cache | |
* Trying ::1... | |
* connect to ::1 port 8080 failed: Connection refused | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /test HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Content-Type: text/html | |
> Content-Length: 7 | |
> | |
* upload completely sent off: 7 out of 7 bytes | |
< HTTP/1.1 200 OK | |
* Server OlegDB/fresh_cuts_n_jams is not blacklisted | |
< Server: OlegDB/fresh_cuts_n_jams | |
< Content-Type: text/plain | |
< Connection: close | |
< Content-Length: 7 | |
< | |
MUDADA | |
* Closing connection 0 | |
[ OK kyle@insomnia:~ ] | |
$ curl -vvvv http://localhost:8080/test | |
* Hostname was NOT found in DNS cache | |
* Trying ::1... | |
* connect to ::1 port 8080 failed: Connection refused | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /test HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
* Server OlegDB/fresh_cuts_n_jams is not blacklisted | |
< Server: OlegDB/fresh_cuts_n_jams | |
< Content-Type: text/htmlon/x-www-form-urlencoded | |
< Content-Length: 7 | |
< Connection: close | |
< | |
* Closing connection 0 | |
testing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment