FG
💻 Software🔌 APIs & SDKs

GET request does not send data (JSON).

Freshover 6 years ago
Mar 14, 20260 views
Confidence Score78%
78%

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

Canonical Fix
High Confidence Fix
76% confidence90% success rate8 verificationsLast verified Mar 14, 2026

Solution: GET request does not send data (JSON).

Low Risk

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

76

Trust Score

8 verifications

90% success
  1. 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. 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. 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

Worked: 8
Partial: 1
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

axioshttpapi