I'm currently trying to query an HTML page to extract data into a DB via the CURL command. The page containing the data is a frame within a 'parent' window. The parent window expects a number of parameters (which it uses as a form of login), then the 'child' window is displayed.
Code of the 'parent window'...
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Page Title</title>
- <script language="javascript">
- var ready=false;
- var mLoaded=false;
- </script>
- </head>
- <frameset rows="*,1" border=0>
- <frame name="Aleft" src="Main.html" scrolling=auto noresize border=0 frameborder=0 marginwidth=5 marginheight=0>
- <frame name="Aright" src="Other.html" scrolling=no noresize border=0 frameborder=0 marginwidth=0 marginheight=0>
- </frameset>
- </html>
The HTML from the frame page doesn't pass any additional parameters to the 'child' page, but does contain...
Expand|Select|Wrap|Line Numbers
- <script language="javascript">
- var ready=false;
- var mLoaded=false;
- </script>
Could the 'child' window be checking the referer? COuld there be some cookies somewhere and I'm just not seeing it / them?
Essentially my question is, how can I grab data from this 'child' window? I know I haven't given links (due to the sensitive nature of the data and server in question), but I'm assuming similar problems have been encountered in the past?
Any help is greatly appreciated, thanks
Rob