-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
HTTP Client unable to post raw body with more than a thousand ampersands #42349
Comments
I have to be honest that I don't know myself. But if you can work around this with |
I'll try to make a PR with these changes and we can discuss the validity of the solution there. I don't think increasing |
@Krisell agreed, but if it's a workaround for you right now then I suggest to take it. I'm not entirely sure what will break if we implement the change you propose. |
I did a bad job searching for previous reports of this issue. Here's the same issue reported for context: #36976 I'll read through the historic discussions and see if I can understand what is going on. |
Description:
In a new Laravel install, running the following command fails with the error message below:
I understand that this could be solved by increasing
max_input_vars
, but I'm confused why the raw POST body is being parsed as query/form-data parameters at all. I'm not familiar enough with the HTTP Client to understand all details, but the problem might be related to testing-specific code (relevant when faking the client).By making the following change in
PendingRequest.php
, the request is successful and the correct data is sent.The Client tests in the framework seem to pass with this change.
Steps To Reproduce:
The example mentioned above is sufficient, and note that a thousand ampersands could commonly appear in HTML code being transmitted (as in our use case). Changing the content type to
text/plain
doesn't help.The text was updated successfully, but these errors were encountered: