lily
(lily)
#1
in cotroller:
@url=URI.parse(‘http://google.com.sg/webhp’)
@res = Net::HTTP.get_response(@clarifyurl)
in view: <%=@res.body>
this page displayed as
301 Moved
The document has moved here
what's wrong with my code, I want to get the correct reponse HTML
content from google.
lily wrote:
in cotroller:
@url=URI.parse(‘http://google.com.sg/webhp’)
@res = Net::HTTP.get_response(@clarifyurl)
in view: <%=@res.body>
this page displayed as
301 Moved
The document has moved here
what's wrong with my code, I want to get the correct reponse HTML
content from google.
http://www.w3.org/Protocols/rfc2616/rfc2616.html
- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
~ "Mom and dad say I should make my life an example of the principles I
~ believe in. But every time I do, they tell me to stop it."
~ --- Calvin