, ? Net:: HTTP . , , , netcat (nc):
1:
> nc -v -l -p 2323
2 ( irb):
> http = Net::HTTP.new("localhost", 2323)
> http.post("/blah", "something", {'random-parameter' => ... )
( 1):
listening on [any] 2323 ...
connect to [127.0.0.1] from localhost [127.0.0.1] 37598
POST /blah HTTP/1.1
Connection: close
Accept: */*
Random-Parameter: value1="something",value2="somethingelse"
Content-Type: application/x-www-form-urlencoded
Content-Length: 9
Host: localhost:2323
something
, ( , ) - HTTP:
> http.post("/blah", "something", {
'random-parameter' => 'value1="something"; value2="somethingelse"' })
Rails, , 1 =... .., , , ;; 'not', '.
, . , , , (?) URL-, param1 = foo & param2 = bar, x-www-form-urlencoded .
. :
http://www.rubyinside.com/nethttp-cheat-sheet-2940.html