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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkf/h/8ACgkQbtAgaoJTgL9AoACeICBI5tkHlyjvqeDE/2xzK1ed
Gg8An1T6KsUARtlNTKIgH+xRgkJpdbXg
=aURk
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
?? No one answer me? On Apr 11, 11:47 pm, Phillip Gawlowski <cmdjackr...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > lilywrote: > > | 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 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (MingW32) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iEYEARECAAYFAkf/h/8ACgkQbtAgaoJTgL9AoACeICBI5tkHlyjvqeDE/2xzK1ed > Gg8An1T6KsUARtlNTKIgH+xRgkJpdbXg > =aURk > -----END PGP SIGNATURE-------~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---