Link to home
Start Free TrialLog in
Avatar of ksntwebmaster
ksntwebmaster

asked on

How can I utilize WGET to retrieve dynamically created .html pages?

I have dynamically created html pages that are being created on 1 server and our main page contents residing on another server.  How can I use the WGET command to import a copy of the dynamically created .html files over to our main server?  Here is our main news story page (click on any of these links to see the invidually created .html files I want to import) http://treebeard.grokthis.net:8030/news/ the catch is that the html pages are dynamically assembled from data in my My SQL db and a 'real' html page doesn't exist in this directory but only when the specific story URL is clicked upon.
Avatar of fixnix
fixnix

I'm not sure I understand the problem.  When I wget a url on that site or click on the link, either way gives me the same html source.  What am I missing?
Avatar of ksntwebmaster

ASKER

This page and all subsequent pages are being creating using Mason Templating components perhaps that is causing the problem.  Try this site's news page: http://www.ksn.com/news  this is our sister station's page but uses the sames Mason components.
ASKER CERTIFIED SOLUTION
Avatar of fixnix
fixnix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
think I was just using the WGET syntax the wrong way but your response allowed me to figure out what exactly I was doing wrong
this works for what I need: wget -r --level=0 -p -k http://treebeard.grokthis.net:8030
cool....glad I could help even if it was indirectly :)  Congrats.