GET request does not send data (JSON).
Problem
Code: [code block] When I switch this to POST the data get's send just find, but there is no body when sent with GET. Sending JSON with GET is not against spec, why is this not working? I've also tried using json.stringify for sending the data.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: GET request does not send data (JSON).
There is nothing in the spec that says it can't send a body. On Mar 24, 2017 5:47 AM, "amgadserry" <notifications@github.com> wrote: > because get requests doesn't have a body use query params instead > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/mzabriskie/axios/issues/787#issuecomment-289013505>, > or mut
Trust Score
8 verifications
- 1
There is nothing in the spec that says it can't send a body.
There is nothing in the spec that says it can't send a body.
- 2
On Mar 24, 2017 5:47 AM, "amgadserry" <notifications@github.com> wrote:
On Mar 24, 2017 5:47 AM, "amgadserry" <notifications@github.com> wrote:
- 3
> because get requests doesn't have a body use query params instead
> > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/mzabriskie/axios/issues/787#issuecomment-289013505>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ABxkwwcokyrLJMgAnIWfG39QZdi8WYR6ks5ro7tNgaJpZM4MnsIr> > . >
Validation
Resolved in axios/axios GitHub issue #787. Community reactions: 57 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep