Displaying 2 results from an estimated 2 matches for "readbody".
Did you mean:
read_body
2007 Jun 10
0
pb when posting to an action "render_text body, :status => 400"
...= "http://localhost:3000/test"
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
resp = http.post(uri.request_uri,"test")
=> Net::HTTPBadResponse: wrong status line: "HTTP/1.1 0 "
if you do the same with webrick it works :
=> #<Net::HTTPOK 200 OK readbody=true>
(I''m not sure webrick is right saying HTTP OK, when we asked to respond a
400 status, but it does not break the consumer client !)
I didn''t find anything on this problem on google.
I''m a newbie in ruby and rails, and a total newbie with mongrel, so I hope
this...
2006 Nov 04
0
Net::HTTP.post_form got 200 but no INSERT INTO. How come? How to fix this?
...rm(URI.parse("http://localhost:3002/blog2/new"),
{"commit" => "Save",
"signature_id" => "", "signature_content" => "hey rails, it''s me ruby,
your lover, why can you not insert me"})
=> #<Net::HTTPOK 200 OK readbody=true>
irb(main):014:0>
Here''s the log (from rails)
Processing Blog2Controller#new (for 127.0.0.1 at 2006-09-03 09:13:55) [POST]
Session ID: 1629fe20fc50bebad043d8f6cb6a7a83
Parameters: {"commit"=>"Save", "action"=>"new", "signa...