Can not POST an empty request with Illumintate/Http/Client #38513
Unanswered
PauBenetPrat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was previously using Zttp library for my calls.
When updating to laravel I removed it and started using Http facade instead.
I've found out that Http:post method $data parameter can't be null and I'm having issues with that. I need to send a POST with null body, not and empty array.
Wouldn't it be possible to allow $data to be null or as its sibling
Http::delete
method does, don't send body when it's empty?PROPOSAL 1
PROPOSAL 2
Thanks in advance,
Pau
Beta Was this translation helpful? Give feedback.
All reactions