mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-19 04:04:40 -04:00
log Network.requestIntercepted
This commit is contained in:
parent
ee8ef23f0c
commit
47721fc1b5
1 changed files with 7 additions and 0 deletions
|
@ -241,6 +241,13 @@ class WebsockReceiverThread(threading.Thread):
|
||||||
elif message['method'] == 'Network.requestWillBeSent':
|
elif message['method'] == 'Network.requestWillBeSent':
|
||||||
if self.on_request:
|
if self.on_request:
|
||||||
self.on_request(message)
|
self.on_request(message)
|
||||||
|
elif message['method'] == 'Network.requestIntercepted':
|
||||||
|
if 'params' in message and 'authChallenge' in message['params']:
|
||||||
|
auth_challenge = message['params']['authChallenge']
|
||||||
|
self.logger.info('Network.requestIntercepted AuthChallenge %s %s',
|
||||||
|
auth_challenge['scheme'], auth_challenge['origin'])
|
||||||
|
else:
|
||||||
|
self.logger.info('Network.requestIntercepted non-AuthChallenge')
|
||||||
elif message['method'] == 'Page.interstitialShown':
|
elif message['method'] == 'Page.interstitialShown':
|
||||||
# AITFIVE-1529: handle http auth
|
# AITFIVE-1529: handle http auth
|
||||||
# we should kill the browser when we receive Page.interstitialShown and
|
# we should kill the browser when we receive Page.interstitialShown and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue