You are here: Forums Ask a Rails expert how to get the stat code from ...
Posted in Forums : Ask a Rails expert
Authority 0
Posting Rating 22
Sign in to rate this post
|
My code is as follows
client = HTTPClient.new
response= client.get(‘http://localhost:3000/’) My requirement is to read the @response_status_code from the above header .Please give me some idea about this. |
Authority 12
Posting Rating 96
Sign in to rate this post
|
Hi, client = HTTPClient.new => [...] response = client.get “http://google.com” => [...] response.status => 301 response.reason => “Moved Permanently” Jon |
Ask a Rails expert : Tracking down an issue
Ask a Rails expert : Thread Vs Transaction
Ask a Rails expert : implementing whitelist plugin
Ask a Rails expert : Validation helper
Ask a Rails expert : FILE EDIT/DELETE
Ask a Rails expert : decrypting the password
Ask a Rails expert : Static Objects in Rails
Ask a Rails expert : Newbie - Rake Cant Execute Test
Ask a Rails expert : Call Web service
Ask a Rails expert : RMagick issues