qt - how to determine what is the QNetworkRequest Method (get or post)? -
when use qwebview browse websites , monitor requests using qwevview.page().networkaccessmanager().finished
signal, how can detemine taht request method (post or get)?
this code:
def __init__() self.web=qwebview() self.web.seturl(myurl) self.web.page().networkaccessmanager().finished.connect(self.checkmethod) self.web.show() def checkmethod(self,reply): req=reply.request() print(req.method())# can this?
Comments
Post a Comment