Skip to content

Instantly share code, notes, and snippets.

@debetimi
Created May 30, 2014 17:08
Show Gist options
  • Save debetimi/0be5e2a829b9f7201012 to your computer and use it in GitHub Desktop.
Save debetimi/0be5e2a829b9f7201012 to your computer and use it in GitHub Desktop.
Liberator Friend
timi-$: curl -v --data "username=tom@gmail.com&password=password" localhost:3000/registration
* Adding handle: conn: 0x7fe4c9036400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe4c9036400) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying ::1...
* Connected to localhost (::1) port 3000 (#0)
> POST /registration HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:3000
> Accept: */*
> Content-Length: 40
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 40 out of 40 bytes
< HTTP/1.1 201 Created
< X-Liberator-Trace: :decision (:service-available? true)
< X-Liberator-Trace: :decision (:known-method? :post)
< X-Liberator-Trace: :decision (:uri-too-long? false)
< X-Liberator-Trace: :decision (:method-allowed? :post)
< X-Liberator-Trace: :decision (:malformed? false)
< X-Liberator-Trace: :decision (:authorized? nil)
< X-Liberator-Trace: :handler (:handle-unauthorized)
< X-Liberator-Trace: :decision (:service-available? true)
< X-Liberator-Trace: :decision (:known-method? :post)
< X-Liberator-Trace: :decision (:uri-too-long? false)
< X-Liberator-Trace: :decision (:method-allowed? :post)
< X-Liberator-Trace: :decision (:malformed? false)
< X-Liberator-Trace: :decision (:authorized? :timi1)
< X-Liberator-Trace: :decision (:allowed? true)
< X-Liberator-Trace: :decision (:valid-content-header? true)
< X-Liberator-Trace: :decision (:known-content-type? true)
< X-Liberator-Trace: :decision (:valid-entity-length? true)
< X-Liberator-Trace: :decision (:is-options? false)
< X-Liberator-Trace: :decision (:accept-exists? true)
< X-Liberator-Trace: :decision (:media-type-available? {:representation {:media-type "text/html"}})
< X-Liberator-Trace: :decision (:accept-language-exists? nil)
< X-Liberator-Trace: :decision (:accept-charset-exists? nil)
< X-Liberator-Trace: :decision (:accept-encoding-exists? nil)
< X-Liberator-Trace: :decision (:processable? true)
< X-Liberator-Trace: :decision (:exists? true)
< X-Liberator-Trace: :decision (:if-match-exists? nil)
< X-Liberator-Trace: :decision (:if-unmodified-since-exists? nil)
< X-Liberator-Trace: :decision (:if-none-match-exists? nil)
< X-Liberator-Trace: :decision (:if-modified-since-exists? nil)
< X-Liberator-Trace: :decision (:method-delete? false)
< X-Liberator-Trace: :decision (:post-to-existing? true)
< X-Liberator-Trace: :decision (:post! true)
< X-Liberator-Trace: :decision (:post-redirect? false)
< X-Liberator-Trace: :decision (:new? true)
< X-Liberator-Trace: :handler (:handle-created)
< Link: <//x-liberator/requests/grnnr>; rel=x-liberator-trace
< X-Liberator-Trace-Id: grnnr
< Vary: Accept
< Content-Type: text/html;charset=UTF-8
< Content-Length: 15
* Server http-kit is not blacklisted
< Server: http-kit
< Date: Fri, 30 May 2014 17:07:34 GMT
<
* Connection #0 to host localhost left intact
YUP YOUR OKAY
timi-$: curl -v --data "username=tom@gmail.com&password=passwosdssdsdsdssddssdrd" localhost:3000/registration
* Adding handle: conn: 0x7fcc6a036400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fcc6a036400) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST /registration HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:3000
> Accept: */*
> Content-Length: 56
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 56 out of 56 bytes
< HTTP/1.1 408 Request Timeout
< X-Liberator-Trace: :decision (:service-available? true)
< X-Liberator-Trace: :decision (:known-method? :post)
< X-Liberator-Trace: :decision (:uri-too-long? false)
< X-Liberator-Trace: :decision (:method-allowed? :post)
< X-Liberator-Trace: :decision (:malformed? false)
< X-Liberator-Trace: :decision (:authorized? nil)
< X-Liberator-Trace: :handler (:handle-unauthorized)
< Link: <//x-liberator/requests/ea68t>; rel=x-liberator-trace
< X-Liberator-Trace-Id: ea68t
< Content-Length: 16
* Server http-kit is not blacklisted
< Server: http-kit
< Date: Fri, 30 May 2014 17:08:19 GMT
<
* Connection #0 to host localhost left intact
GET OUTTA HERE
timi-$: curl -v --data "username=tom@gmail.com&password=password" localhost:3000/registration
* Adding handle: conn: 0x7f8588836400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8588836400) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 3000 (#0)
* Trying ::1...
* Connected to localhost (::1) port 3000 (#0)
> POST /registration HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:3000
> Accept: */*
> Content-Length: 40
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 40 out of 40 bytes
< HTTP/1.1 306 Redirection (306)
< X-Liberator-Trace: :decision (:service-available? true)
< X-Liberator-Trace: :decision (:known-method? :post)
< X-Liberator-Trace: :decision (:uri-too-long? false)
< X-Liberator-Trace: :decision (:method-allowed? :post)
< X-Liberator-Trace: :decision (:malformed? false)
< X-Liberator-Trace: :decision (:authorized? nil)
< X-Liberator-Trace: :handler (:handle-unauthorized)
< X-Liberator-Trace: :decision (:service-available? true)
< X-Liberator-Trace: :decision (:known-method? :post)
< X-Liberator-Trace: :decision (:uri-too-long? false)
< X-Liberator-Trace: :decision (:method-allowed? :post)
< X-Liberator-Trace: :decision (:malformed? false)
< X-Liberator-Trace: :decision (:authorized? nil)
< X-Liberator-Trace: :handler (:handle-unauthorized)
< Link: <//x-liberator/requests/4l9rt>; rel=x-liberator-trace
< X-Liberator-Trace-Id: 4l9rt
< Content-Length: 9
* Server http-kit is not blacklisted
< Server: http-kit
< Date: Fri, 30 May 2014 17:05:57 GMT
<
* Connection #0 to host localhost left intact
forbidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment