Skip to content

Change HTTP method strings to uppercase - #273

Open
fitudao3788 wants to merge 2 commits into
cdpdriver:mainfrom
fitudao3788:main
Open

Change HTTP method strings to uppercase#273
fitudao3788 wants to merge 2 commits into
cdpdriver:mainfrom
fitudao3788:main

Conversation

@fitudao3788

@fitudao3788 fitudao3788 commented Aug 25, 2026

Copy link
Copy Markdown

Description

I fixed an issue observed on Windows 11 and Python 3.10 where connecting to the CDP using urllib.request with a lowercase method name resulted in a "Failed to connect to browser" error, preventing access.

Pre-merge Checklist

  • I have described my change in the section above.
  • I have ran the ./scripts/format.sh and ./scripts/lint.sh scripts. My code is properly formatted and has no linting errors.
  • I have ran uv run pytest and ensured all tests pass.
  • I have added my change to CHANGELOG.md under the [Unreleased] section.

Copilot AI lite review requested due to automatic review settings August 25, 2026 01:32
@fitudao3788
fitudao3788 requested a review from a team as a code owner August 25, 2026 01:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the HTTPApi request method strings to use uppercase HTTP verbs to avoid connection failures observed on Windows 11 + Python 3.10 when using urllib.request with lowercase method names.

Changes:

  • Change post() to call _request(..., method="POST") instead of "post".
  • Change _request() default method from "get" to "GET".

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Successfully merging this pull request may close these issues.

2 participants