
Jasmine
Administrator
/ Moderator
May 3, 2000, 8:09 AM
Post #2 of 3
(135 views)
|
|
Re: Intercepting script output?
[In reply to]
|
Can't Post
|
|
This sounds like a perfect candidate for LWP. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> use LWP::UserAgent; $webagent = new LWP::UserAgent; $url = "http://www.yourdomain.com/cgi-bin/whatever.cgi"; $request = new HTTP::Request(GET => $url); $response = $webagent->request( $request ); if ( $response->is_success ) { # do something with $response->content -- this contains the full html code for the request } </pre><HR></BLOCKQUOTE> If you need to post to the form in order to receive the html code, search the forum for this -- posting via LWP has been addressed quite a few times. Good luck!
|