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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:17:12+00:00 2026-05-26T13:17:12+00:00

When I run an ajax request of type POST, the parameters are not included

  • 0

When I run an ajax request of type “POST”, the parameters are not included in the string.

This code:

    $telerik.$.ajaxSetup({
        accepts: 'application/json, text/javascript, */*'
    });

    var parameters = {
        "playerId": args.playerId
    };

    var ajaxCallParameters = {
    async: true,
    cache: false,
    url: "../Services/CmsWebService.svc/SendUpdateRequestToPlayer",
    type: "POST",
    data: parameters,
    dataType: 'json',
    error: function (jqXHR, textStatus, errorThrown) {
        var errorString = 'Error thrown from ajax call: ' + textStatus + 'Error: ' + errorThrown;
        var displayPanel = document.getElementById('requestStatusUpdateResults');
        $telerik.$(displayPanel).text(errorString);

    },
    success: function (data, textStatus, jqXHR) {
        var displayPanel = document.getElementById('requestStatusUpdateResults');
        $telerik.$(displayPanel).text(data.d);
    }
    };

    $telerik.$.ajax(ajaxCallParameters);

Triggers this request (viewed in Fiddler)

POST /Web/Services/CmsWebService.svc/SendUpdateRequestToPlayer HTTP/1.1

As you can see, the parameter is not included.

If I simply change the word “POST” to “GET” in the code then this is the request:

GET /Web/Services/CmsWebService.svc/SendUpdateRequestToPlayer?playerId=1&_=1320213556288 HTTP/1.1

What’s going on? What it is about POST which stops request parameters being included?

  • 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-26T13:17:13+00:00Added an answer on May 26, 2026 at 1:17 pm

    HTTP POST behaves different than GET. When you use HTTP GET, it sends the parameters as part of the URL’s query string, which is why you see them added on. However, when you use HTTP POST, the parameters are sent as part of the HTTP Body and therefore they aren’t added to the URL.

    The reason for using POST instead of GET is that GET parameters have a size limit in some browsers, whereas you can have parameters of almost any length when submitted via a POST.

    Depending on what backend server technology is being used, the server may treat GET parameters and POST parameters the same and therefore your backend service will handle either one fine. However, in a lot of cases you have to specifically code your backend service to accept parameters via GET & POST.

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

Sidebar

Related Questions

I am doing a simple $.ajax request: $.ajax({ type: POST, url: /Run/ + param1
I want to run function inside web service (.asmx file) $.ajax({ type: POST, contentType:
On document ready I run this code: jQuery(document).ready(function(){ jQuery('#button').click(function() { jQuery('#contact_form').load(/Users/mge/Downloads/jquery-ajax-1/readme.txt); return false; });
this works: $.ajax({ type: 'POST', url: 'register.php', data: {captcha: captcha }, success: function() {
I have the following code multiple times: $.ajax({ type: POST, cache: false, url: url
I have a partial view which contain JavaScript and Ajax, but does not run
* SOLVED * Answer is in separate post below This code runs fine in
I'm doing the following ajax call: //exif loader function LoadExif(cImage) { $.ajax({ type: POST,
My error handling isn't working on this ajax request... Just now my r was
I have an ajax request that looks like this, $(#frmProducts).submit(function(){ var dataSet = $(#frmProducts).serialize();

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.