Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CodeMonkeyKevin/5967229 to your computer and use it in GitHub Desktop.
Save CodeMonkeyKevin/5967229 to your computer and use it in GitHub Desktop.
disappearing params rails4/rack
curl -vv -H "Content-Type: text/xml" -d '<test>data</test>' -X POST http://127.0.0.1:3000/test
* About to connect() to 127.0.0.1 port 3000 (#0)
* Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 3000 (#0)
> POST /test HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
> Host: 127.0.0.1:3000
> Accept: */*
> Content-Type: text/xml
> Content-Length: 17
>
* upload completely sent off: 17 out of 17 bytes
< HTTP/1.1 200 OK
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Ua-Compatible: chrome=1
< Content-Type: text/html; charset=utf-8
< Etag: "7215ee9c7d9dc229d2921a40e899ec5f"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: f0d67b73-e584-49fc-89e4-0c25578cd635
< X-Runtime: 0.018948
< Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-05-14)
< Date: Wed, 10 Jul 2013 15:17:17 GMT
< Content-Length: 1
< Connection: Keep-Alive
< Set-Cookie: request_method=POST; path=/
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
# request.params
{
"action" => "index",
"controller" => "testing"
}
&[..&[..POST /test HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
Host: 127.0.0.1:3000
Accept: */*
Content-Type: text/xml
Content-Length: 17
<test>data</test>
11:24:09.721072 IP localhost.hbci > localhost.52227: Flags [.], ack 212, win 9173, options [nop,nop,TS val 643548888 ecr 643548888], length 0
E..4..@.@...............G.i...SF..#..(.....
&[..&[..
11:24:09.726548 IP localhost.hbci > localhost.52227: Flags [P.], seq 1:518, ack 212, win 9173, options [nop,nop,TS val 643548893 ecr 643548888], length 517
E..9..@.@...............G.i...SF..#........
&[..&[..HTTP/1.1 200 OK
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Ua-Compatible: chrome=1
Content-Type: text/html; charset=utf-8
Etag: "7215ee9c7d9dc229d2921a40e899ec5f"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ec6a9dd1-1b92-4723-850d-0d49feb71cb6
X-Runtime: 0.002738
Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-05-14)
Date: Wed, 10 Jul 2013 15:24:09 GMT
Content-Length: 1
Connection: Keep-Alive
Set-Cookie: request_method=POST; path=/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment