The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 913d54e4 authored by Florian Duguet's avatar Florian Duguet Committed by Vincent A

[carrefourbanque] remove two ugly cookies to avoid 400 response on login

Closes: 41770@sibi
Closes: 11590@zendesk 11684@zendesk 11787@zendesk 11769@zendesk
parent f8f8b3ea
......@@ -73,6 +73,16 @@ def do_login(self):
self.incapsula_ressource.go(params={'SWCGHOEL': 'v2'}, data=data)
self.login.go()
# this cookie contains an ugly \x01 and make next request fail with a 400 if not removed
___utmvafIuFLPmB = self.session.cookies.pop('___utmvafIuFLPmB', None)
if ___utmvafIuFLPmB:
self.session.cookies['___utmvafIuFLPmB'] = ___utmvafIuFLPmB.replace('\x01', '')
# this cookie contains an ugly \n and make next request fail with a 400 if not removed
___utmvbfIuFLPmB = self.session.cookies.pop('___utmvbfIuFLPmB', None)
if ___utmvbfIuFLPmB:
self.session.cookies['___utmvbfIuFLPmB'] = ___utmvbfIuFLPmB.replace('\n', '')
if self.incapsula_ressource.is_here():
if self.page.is_javascript:
# wait several seconds and we'll get a recaptcha instead of obfuscated javascript code,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment