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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:14:53+00:00 2026-06-13T07:14:53+00:00

I have a website that runs queries on the server, which is running Mongrel.

  • 0

I have a website that runs queries on the server, which is running Mongrel. The query syntax can get quite involved, and I just ran a query (HTTP request) that yielded this error.

All workarounds welcome.

EDIT: Here’s the full ajax command:

 $.ajax({
        type: "POST",
        url:    '/parsequery/' + jsonQuery,
        beforeSend: function(x) { // this is needed because otherwise jquery doesn't see the returned data as json
            if(x && x.overrideMimeType) {
                x.overrideMimeType("text/html");
            }
        },
        datatype: 'json',
        success: function(data, textStatus) {
            if (parsedOK(data)) {
                executeQuery(jsonQuery);
            }
            else {
                handleFailedParse(data);
            }

        },
        error:  function(jaXHR, textStatus, errorThrown) {
            alert("error sending request: " + textStatus)
        }

    });
  • 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-13T07:14:54+00:00Added an answer on June 13, 2026 at 7:14 am

    You should use HTTP POST for that. Many server and browser implementations have tight limits on the query length, something around 1 kByte or 2 kBytes.

    So instead of

    <form action="http://www.example.org/foo" method="get">
    

    you should do

    <form action="http://www.example.org/foo" method="post">
    

    And in case you do not do the requests via forms, you could use jQuery for instance:

    $.post("/foo", {"param1": "foo", "param2": "bar"}, function(data) {
      alert("post successful!");
    });
    

    See here for examples: http://api.jquery.com/jQuery.post/

    Of course the server side needs to handle POST requests. But changing from GET to POST on the server side is should be from a programming point of view trivial.

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

Sidebar

Related Questions

I have a bit of javascript that runs on a 3rd party's website which
I currently have a website written in classic asp that runs multiple queries against
I have a website that runs fine on IE10 Consumer Preview, Chrome, and Firefox
I have a website that right now, runs by creating static html pages from
I have a website (ASP.NET MVC3) that runs on IIS 7. From this website,
I have inherited an big existing PHP application (website actually) that runs on Apache.
I have an ActiveX control that runs on a website, where the old version
I have an application that runs on a shared hosting website - it is
I have a server that runs different websites on different ports. All of them
So basically I have website that has names of cities that can be checked

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.