I want to download some html-pages that send something different if javascript
is not running. So
use LWP::Simple;
..
$got = get( $url );
does not work, because LWP::Simple does not tell the sever that javascript is
running.
Is there a solution? Right now I don't need to run the javascript code I just
want to act as it were possible.
Thanks in advance,
carl
You can use something to capture the entire conversation (like Ethereal
- http://www.ethereal.com/) while you use a regular browser to walk
through the steps if you're up for the task of walking through all the
ins and outs of tcp/ip packets, or you can use a combination of view
source along with the livehtttpheaders
(http://livehttpheaders.mozdev.org/) extension for Firefox/Mozilla.
The Webdeveloper extension for Firefox (http://webdeveloper.mozdev.org/)
also has some good tools for hypertext transfer protocol detectives. But
"View Source" is the simplest place to start.
Hope I'm not stating too much of the obvious, but your question and code
example were pretty general.
Peace,
Paul
Carl A. Schreiber wrote:
--
"If you wish to be happy yourself, you must
resign yourself to seeing others also happy."
-- Bertrand Russell