Reputation: 7195
I need to track/modify QtWebkit HTTP requests.
I have a hybrid web/desktop application prototype that uses HTML forms. Form submission is done purely in AJAX and there is no form action or classic form submit button. Everything is done using JavaScript handlers and AJAX. The problem is that I need to track the HTTP request that contains form and other data from C++ side.
I've checked that QNetworkAccessManager has "finished(QNetworkReply*)" signal that allows to interact with HTTP response, but it's not clear to track/modify HTTP requests in QtWebkit.
Any usable example is welcome.
Thanks.
UPDATE: I think QNetworkAccessManager::createRequest is a way to go, checking it out.
Upvotes: 2
Views: 1743
Reputation: 42415
See Ariya Hidayat's answer to QNetworkReply - connection established, first byte written, etc.. question. As to modifying requests take a look at How to tell QWebPage not to load specific type of resources?
Upvotes: 2