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

response.header not detected like default playwright #79

Open
danofun opened this issue Nov 14, 2024 · 1 comment
Open

response.header not detected like default playwright #79

danofun opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@danofun
Copy link

danofun commented Nov 14, 2024

Describe the bug:

First off, congrats and thank you for an incredible project! I'm trying to capture response headers from a website. In issue #59 you referenced responses working like default playwright. When attempting to capture response headers, I am not able to do so like default playwright. No headers are ever found.

Add a description of what the bug is. Provide as much detail and additional context as possible.

Screenshots:

If applicable, add screenshots to help explain your problem.

To Reproduce:

def capture_response_headers(response):
    if response.url.startswith("https://www.example.com"):
        headers = response.headers
        print(headers)

context.on("response", capture_response_headers)

Route to intercept responses

context.on("response", capture_response_headers)

Provide steps or a code snippet that reproduces the bug.

Version:

Pip package: v0.3.9
Camoufox: v132.0-beta.15 (Up to date!)

Run python -m camoufox version in your terminal and paste the output here.

@danofun danofun added the bug Something isn't working label Nov 14, 2024
@Pijukatel
Copy link

Hi, I was just trying camoufox today and I deployed two exactly same scripts on Linux and Windows machine. On Linux headers were as expected, but on Windows no headers were found. Exactly like described in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants