Skip to content

http: remove a HTTP method size restriction #16729

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

Closed
wants to merge 2 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Mar 14, 2025

By allocating the method string as part of the struct, the previous fixed size limit (23 bytes) can be avoided. It would previously make "curl -X [long string]" work against http://localhost but fail against https://curl.se with no clear error message.

By allocating the method string as part of the struct, the previous
fixed size limit (23 bytes) can be avoided. It would previously make
"curl -X [long string]" work against http://localhost but fail against
https://curl.se with no clear error message.
@bagder bagder added the HTTP label Mar 14, 2025
@bagder bagder requested a review from icing March 14, 2025 16:33
@icing
Copy link
Contributor

icing commented Mar 14, 2025

nit: I think it is one char too many?

@bagder
Copy link
Member Author

bagder commented Mar 14, 2025

nit: I think it is one char too many?

Ah yes!

@testclutch
Copy link

Analysis of PR #16729 at 09a12c77:

Test 1514 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Test 989 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

@bagder bagder closed this in 7d679f9 Mar 14, 2025
@bagder bagder deleted the bagder/http-long-method branch March 14, 2025 19:11
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
By allocating the method string as part of the struct, the previous
fixed size limit (23 bytes) can be avoided. It would previously make
"curl -X [long string]" work against http://localhost but fail against
https://curl.se with no clear error message.

Closes curl#16729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants