Re: Displaying the html from a ruby .cgi script
- From: Albert Schlef <albertschlef@xxxxxxxxx>
- Date: Tue, 22 Dec 2009 21:04:32 -0500
Marc Heiler wrote:
I have a script, foobar.cgi
I can load it into my browser, as in
http://localhost/foobar.cgi
[...]
Is there an easy way to grab that generated html code and
display it (as a long string) on a console?
[...]
a "ruby only" solution, which I would prefer
require 'open-uri'
print open('http://localhost/foobar.cgi').read
I thought lynx -dump might help but it doesn't,
What does "it doesn't" mean? If it means "but I don't see the HTML",
then that because you should've used -source, not -dump.
--
Posted via http://www.ruby-forum.com/.
.
- References:
- Displaying the html from a ruby .cgi script
- From: Marc Heiler
- Displaying the html from a ruby .cgi script
- Prev by Date: Re: newbie: if is not null else...
- Next by Date: Trig value errors
- Previous by thread: Re: Displaying the html from a ruby .cgi script
- Next by thread: Re: Displaying the html from a ruby .cgi script
- Index(es):
Relevant Pages
|