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

HTTPResponse #43

Open
luoyechao opened this issue Oct 30, 2018 · 1 comment
Open

HTTPResponse #43

luoyechao opened this issue Oct 30, 2018 · 1 comment

Comments

@luoyechao
Copy link

In the packet,I get the HTTPResponse.When I use the res['HTTPRespons'].User-Agent to access the user-agent, '-' in python can't be use.How should I resolve the problem?

@bsitruk
Copy link

bsitruk commented Apr 2, 2019

You can use

getattr(res['HTTPResponse'], 'User-Agent')

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