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 6375721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:39:07+00:00 2026-05-25T01:39:07+00:00

Using $.getJSON(); or $.post(); I’m trying to send some parameters through a page that

  • 0

Using

$.getJSON();

or

 $.post();

I’m trying to send some parameters through a page that is just for AJAX request
and get some results in JSON or html snippet.

What I want to know is that which one is faster?

Assume the HTML file would be simply plain boolean text (true or false)

  • 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-05-25T01:39:08+00:00Added an answer on May 25, 2026 at 1:39 am

    As others said there is no real difference between the two functions, because both of them will be sent by XMLHttpRequest.

    If the server is handling both of the requests with the same code then the handling times should be the same.

    Therefore the question can be translated to which one is faster the HTTP GET request or the POST request?

    Because the POST request needs two additional HTTP headers (Content-Type and Content-Length) comparing to the GET request the latter should be faster (because less data will be transferred).

    But that’s just the speed, I think it’s better to follow the REST guidelines here. Use POST if you’re modifying something, use GET if you want to fetch something.

    And one another important thing, GET responses could be cached, but I was having problems caching POST ones.

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

Sidebar

Related Questions

I am using getJson to pull in some info onto the page $('#request_song').autocomplete({ serviceUrl:
According to my previous post I am trying to get back some information from
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I'm trying to load via Ajax the last post of a twitter account. I
I am trying to send a variable with jQuery's getJSON function but it doesn't
Help, I'm confused. I just need to get a JSON object into my page.
The jquery function that I'm using is: $.getJSON(rpc2.php?queryString= +inputString+, function(data) { if(data.length >0) {
I am trying to populate a table using jQuery $.post , but I keep
I'm using .getJSON to send a search query to my PHP server and am
I am try to get a URL from a one server and using that

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.