[webkit-qt] tagging network replies created by webkit with useful information

Robert Hogan lists at roberthogan.net
Mon Dec 6 13:06:56 PST 2010


Sent from the wrong address!

On Monday 06 December 2010 21:04:19 Robert Hogan wrote:
> On Monday 06 December 2010 14:36:21 Benjamin Poulain wrote:
> > Hello,
> > 
> > On 12/03/2010 06:38 PM, ext Piotr Dobrogost wrote:
> > > I'm creating a screen scraper. The information I'm looking for come
> > > in response to ajax calls so I need to monitor all ajax calls and
> > > check incoming data. To do so I need to know if an incoming reply
> > > is the reply to ajax request or not. I'd like to know if there were
> > > any thoughts on tagging each QNetworkReply created by webkit
> > > (QNetworkManager of QWebPage) with some additional information
> > > describing the request? In my case this would be information if it
> > > originates from XmlHttp object but mgoetz on #qt-labs suggested
> > > other information like type of a resource; script, image etc.
> 
> Using
> 
> http://doc.trolltech.com/4.5/qnetworkrequest.html#Attribute-enum
> 
> is one possible way of doing this. QtWebKit would tag the request
> depending on the origin of the request.
> 
> This same problem was solved in the case of originating frames at:
> 
> https://bugs.webkit.org/show_bug.cgi?id=29975
> 
> Just some pointers to help you get started!
> 

Though the list is probably the best place to agree the API. I think a 
setOriginatingResource() type call as per bug 29975 might be the best way.



More information about the webkit-qt mailing list