04-30-2009 09:32 AM
When I use Data Socket Read to view a web page HTML, I receive an error stating "<p>This page uses frames, but your browser doesn't support them. Sorry!</p>
".
How can I read the HTML of all or a specific frame of a web page?
04-30-2009 09:43 AM
Are there sites out there that still use frames? Egads!
Essentially you have to know the actual page that's contained within a frame. A frame page is just a placeholder for other pages. If you actually get the source for a frame page you would see that it lists other pages as being contained within a frame. In essence, it's like having multiple browser windows inside of a single page.
04-30-2009 09:51 AM
04-30-2009 09:58 AM
04-30-2009 10:22 AM
You are probably getting some html that looks something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
<FRAMESET rows="100, 200">
<FRAME src="contents_of_frame1.html">
<FRAME src="contents_of_frame2.gif">
</FRAMESET>
<FRAME src="contents_of_frame3.html">
<NOFRAMES>
<p>This page uses frames, but your browser doesn't support them. Sorry!</p>
</NOFRAMES>
</FRAMESET>
</HTML>
(although your frameset and frame tags will amost certainly be different)
What you will need to do is parse out the <FRAME> tag src elements and fetch those pages instead.
e.g. if the home page is http://mysite.com/index.html and the frame tag is <FRAME src="frame1.html">, you will need to fetch http://mysite.com/frame1.html
Shaun
05-05-2009 10:19 AM
09-12-2011 01:01 AM
I have got same problem in my application.
i.e i am requesting to a page which with username & password if it is valid password than balance of that user i shwon in another window .
09-19-2016 12:40 AM
I had the same question and solved it through the method. You can apt-get install php libapache2-mod-php and then restart apache2 and nagios.
09-19-2016 12:41 AM
@shew82 wrote:You are probably getting some html that looks something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
<FRAMESET rows="100, 200">
<FRAME src="contents_of_frame1.html">
<FRAME src="contents_of_frame2.gif">
</FRAMESET>
<FRAME src="contents_of_frame3.html">
<NOFRAMES>
<p>This page uses frames, but your browser doesn't support them. Sorry!</p>
</NOFRAMES>
</FRAMESET>
</HTML>
(although your frameset and frame tags will amost certainly be different)
What you will need to do is parse out the <FRAME> tag src elements and fetch those pages instead.
e.g. if the home page is http://mysite.com/index.html and the frame tag is <FRAME src="frame1.html">, you will need to fetch http://mysite.com/frame1.html
Shaun
I had the same question and solved it through the method. You can apt-get install php libapache2-mod-php and then restart apache2 and nagios.
09-19-2016 01:38 AM