Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying Connection header #88

Open
Neschastje opened this issue Oct 5, 2018 · 1 comment
Open

Modifying Connection header #88

Neschastje opened this issue Oct 5, 2018 · 1 comment

Comments

@Neschastje
Copy link

Neschastje commented Oct 5, 2018

import psutil
import time
from browsermobproxy import Server

server = Server('../resources/browsermob-proxy-2.1.4/bin/browsermob-proxy')
server.start()
proxy = server.create_proxy()
print(proxy.proxy)
proxy.headers({'test': 'close'})
#proxy.headers({'Connection': 'close'})

I'm using code above to start a proxy server for my browser to add/modify headers. Unfortunately, I can't do this with "Connection" header. Is there any way to do this?

@Neschastje Neschastje changed the title Spoofing Connection header Modifying Connection header Oct 5, 2018
@forGithub2019
Copy link

forGithub2019 commented May 10, 2021

I have the same problem. browsermobproxy.client.headers(dict) doesn't seem to be work. Anyone has solved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants