Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8102905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:22:09+00:00 2026-06-05T23:22:09+00:00

Is it typical or the preferred method to have JSON data embedded in a

  • 0

Is it typical or the preferred method to have JSON data embedded in a POST request? For example, if I have maybe five attributes that I want to send, should I embed it in the url or stuff it in the body of a POST request?
So it would be:

www.example.com?attr1=x&attr2=y&attr3=z....

versus in the body of the POST:

{
     "attr1": x,
     "attr2": y,
     "attr2": z
}

I am just wondering which is the standard or best practice way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:22:11+00:00Added an answer on June 5, 2026 at 11:22 pm

    I think it depends of the situation.
    If the parameters you pass are short and you don’t mind having them exposed in the browser address bar, the get method is all right.
    On the other side, if your parameters are lengthy you should consider the post method.

    “Get” method have a limitation on size depending of the browser you’re using (cf.http://www.boutell.com/newfaq/misc/urllength.html) .
    “Post” method size limitation is a server side settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a typical User model (username, password, name, etc). I want to allow
I have a pretty typical bookmarklet code that's working perfectly for me in all
Typical scenario: a class that a lot of people have worked on. I'd like
Typical scenario, post to an action that checks ModelState.IsValid and if it is, saves
The typical Python threadpool will have a structure like this one: def run(self): while
My typical workflow is that I develop on localhost, but with Google Apps Marketplace
A typical C program would be compiled, assembled, linked and loaded. I know that
In your typical MVC application, you have many layers. Database layer Model layer (possibly
I have the typical splash screen with a Connect with Facebook login button. When
I have a typical problem which is like the following: 1) I was working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.