03-29-2011 02:33 AM
I'm trying to get the headers for the request. But I can neither find the enableResourceFiltering in QNXStageWebView neither NetworkResourceHeaderReceivedEvent class so I can include it.
07-03-2011 10:56 AM
Looks like I got it.
On your QNXStageWebView add listeners...
//Listen for all requests made so you can decide to listen for headers
//Listen for headers on requests that look importatnt
Create a method "handleNetworkResourceRequested" that can listen for all requests and detirmine if you should keep filtering for more info.
private function handleNetworkResourceRequested(e:NetworkResourceRe
//Once you have determined that this is a worthy request set the action to filter (otherwise your other listener will not get called)
e.action = NetworkResourceRequestedEvent.ACTION_FILTER;
//Now in your second menu you can listen for headers on the flaged requests...
private function handleNetworkResourceHeaderReceived(e:NetworkResou