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

support PUT Guzzle requests #18

Open
soundlake opened this issue Oct 13, 2016 · 1 comment
Open

support PUT Guzzle requests #18

soundlake opened this issue Oct 13, 2016 · 1 comment

Comments

@soundlake
Copy link

I think it's closely related to the other two issues: #1 and #9.

When I send Guzzle request with PUT method with the binary data, I get the following exception.

FatalErrorException in CurlFormatter.php line 135:
Error: escapeshellarg(): Input string contains NULL bytes

FYI, I leave a part of the stack trace. I don't think you need all of them.

in CurlFormatter.php line 135
at escapeshellarg() in CurlFormatter.php line 135
at CurlFormatter->extractBodyArgument() in CurlFormatter.php line 218
at CurlFormatter->extractArguments() in CurlFormatter.php line 54
at CurlFormatter->format() in GuzzleCollector.php line 99
at GuzzleCollector->collect() in Profiler.php line 223
...

I already saw the pull request #17. But I don't think it's a good idea to show binary data. Instead, I suggest you to put them into a file and give curl argument with -d @[filename] if the file is binary.

@nud
Copy link

nud commented Oct 24, 2016

Actually it could probably just be discarded and replaced with -d @data, at least when used in the context of the Symfony profiler.

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

2 participants