Skip to content

Instantly share code, notes, and snippets.

Created September 21, 2013 07:05
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 anonymous/1e5c2dd49dc703d9b089 to your computer and use it in GitHub Desktop.
Save anonymous/1e5c2dd49dc703d9b089 to your computer and use it in GitHub Desktop.
The MyResource.foo is called in this case ("MyResource.foo" is printed to stderr)
[thecuriousone@anonhost ~]$ curl -X POST localhost:8080/foo -v
* Adding handle: conn: 0x1305180
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1305180) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> POST /foo HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Date: Sat, 21 Sep 2013 09:02:32 GMT
< Connection: close
< Content-Length: 0
<
* Closing connection 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment