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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:29:38+00:00 2026-06-17T18:29:38+00:00

I opened another post last week because my elastic search was not returning accurate

  • 0

I opened another post last week because my elastic search was not returning accurate results see, ElasticSearch post

Basically what was happening was that when I am using jsonp, the request is not actually being sent as a GET request instead of a POST request. Below is the jsonp request. When I use json, it actually gets sent as a POST.

   amplify.request.define("searchPostRequest", "ajax", {
        url: "http://leServer:9200/people/person/_search",
        type: "POST",
        dataType: 'jsonp',
        contentType: 'application/json'
    });

Anyone know how I can force jsonp to be sent as a POST request?

  • 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-17T18:29:39+00:00Added an answer on June 17, 2026 at 6:29 pm

    You can not make a JSONP call to a different domain or same domain with a POST since JSONP works by adding a script tag to the page. It is not making an XMLHttpRequest.

    If you want to post data and it is the same domain, just make a normal POST ajax call to the server and return JSON.

    If it is a cross domain call: If you control the other domain and you only care about modern day browsers you can use CORS, If not, you would have to use a proxy on your server to make the post request. Both of these solutions would also be making a JSON call, not JSONP.

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

Sidebar

Related Questions

Is there any way to check that my page is not opened in another
For some reason or another I cannot figure out why the data when opened
I have a following form Form3 that is opened by another form Form1, and
I would like my app to do something when another application is opened. The
I'm basically sending a post to my server. The string I'm writing is @POST
This post is an offshoot of my previous post . However I have not
Following my previous post in this link I have another problem . Given the
While calling File.Delete(file_path) for a file which is opened in another process, the attempt
I have this Ajax post request. Works great in Crome. Just opened it in
Why use the proposed OpenID OAuth Extension over another OAuth-based protocol? Discovery doesn't seem

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.