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

Fails to process cURL commands from new versions of Chrome #2

Open
n0samu opened this issue Nov 26, 2024 · 0 comments
Open

Fails to process cURL commands from new versions of Chrome #2

n0samu opened this issue Nov 26, 2024 · 0 comments

Comments

@n0samu
Copy link
Member

n0samu commented Nov 26, 2024

As of Chromium 131, the cURL command format from the "Copy as cURL (cmd)" button on the devtools Network tab has changed. The double-quotes surrounding URLs are now additionally escaped with carets:
curl ^"https://www.example.com/^" ^

See https://github.com/FlashpointProject/cURLsDownloader/blob/main/tests/example_curl.txt for the old format.

cURLsDownloader expects the delimiter between curl and the URL to have only space and double-quote characters:
https://github.com/FlashpointProject/cURLsDownloader/blob/main/cURLsDownload.bat#L85

I cannot add ^ as another delimiter character because ^ can also appear within URLs:
https://github.com/FlashpointProject/cURLsDownloader/blob/main/tests/example_curl.txt#L8

So I don't currently see a simple way to fix this bug.

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

1 participant