PDA

View Full Version : QNetworkRequest and embedded frames



Spitfire
6th November 2012, 11:58
I'm looking for a widget-less way of fetching a webpage with embedded frames using network access manager but I can't figure it out.

At the moment when I request a url "http://test/index.php" in return I get:


<frameset cols="200,*" rows="*" id="mainFrameset">
<frame frameborder="0" id="frame_navigation"
src="navigation.php?token=a4f80c8a0fad04caf314a55faf41b 45e"
name="frame_navigation" />
<frame frameborder="0" id="frame_content"
src="main.php?token=a4f80c8a0fad04caf314a55faf41b45e"
name="frame_content" />
</frameset>
(this is phpmyadmin reply if anybody's interested)

If after receiving this reply if I ask again for the navigation.php and main.php (either one or both) I get content of that page as I would land on it without any previous action.

For better understanding imagine a scenario.
In the browser you go to a website which consists of two frames, on one of them you click a button that posts some data to the server.
The page refreshes displaying new information in one of the two frames (sent from the server, not due to some js nor anything client-side).

If I attempt to do the same using network request/reply/access manager I only get the html mentioned earlier.
Requesting page mentioned as frame source do not yeld information that would be visible in response to pressing the button in the browser.

Is there a way of setting network request/access manager so it fetches content of embedded frames? How webkit is doing it?

Any suggestions are welcome.

Cheers!