in reply to Combining Results from Multiple CGIs into one HTML page

There are several ways to achieve what you want to do. One way is to use the LWP mechanism to front-end the existing site. The module WWW::Mechanize will do everything you need for this, but you could alternatively hand-roll something with LWP::Simple or LWP::UserAgent.

In terms of what to do with the page when you have obtained it from the other site, parse out the <BODY> tag, and include the raw HTML as it is, though you might want to do some lower level parsing to pull out information you need for your site. For this purpose, I recommend HTML::PullParser.

Hope this helps,

--rinceWind

  • Comment on Re: Combining Results from Multiple CGIs into one HTML page

Replies are listed 'Best First'.
Re: Re: Combining Results from Multiple CGIs into one HTML page
by PodMaster (Abbot) on Apr 23, 2003 at 11:45 UTC
    Why do you recommend HTML::PullParser? (inquiring minds want to know)


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.