Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to search Google via POST rather than GET, but so far am getting the error:

The request method POST is inappropriate for the URL/search

But which URL is it?

This isn't for a website, I'm searching from my browser. scroogle uses post. Instead of using scroogle, I'd like to post to google myself.


migration rejected from superuser.com May 8 '15 at 3:11

This question came from our site for computer enthusiasts and power users. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as unclear what you're asking by Al E., Vidar S. Ramdal, jonsca May 8 '15 at 3:11

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Is there any specific reason you have to use POST? – grawity Jul 1 '11 at 14:04
Why do you think Google should accept POST requests? – Vidar S. Ramdal May 7 '15 at 14:53

There isn't any. Traditionally, queries are done using GET requests, while POST is for submitting data (actions, database updates, file uploads and such).


If you want a search box that searches Google, just follow these steps:

  1. Create a text input box in a form

  2. Create a button for submitting the text box

  3. In Javascript, set it so that when the text box is clicked, it links to this URL: www.google.com/#your_query_here
    (For the query, get the text from the input box using get Element By Id.)


<input type="text" id="query">
<input type="button" id="submit" value="Search">
var linktext=document.createElement("p");
linktext.appendChild(document.createTextNode("Search Google"));
var link=document.createElement("a");