By Meryn on
I'd like to see that all search operations in Drupal would use HTTP GET instead of POST. This way, a search would be bookmarkable, and search results could even be used as a custom RSS feed.
http://www.w3.org/2001/tag/doc/whenToUseGet.html
This would also be a step in the direction to make Drupal get in line with some of the very thoughtful principles of REST.
http://rest.blueoxen.net/cgi-bin/wiki.pl?ShortSummaryOfRest
All the major search engines use GET for search operations.
Has the issue of using GET or POST been discussed before?
If so, why did you choose for POST?
Comments
get and post
are available in drupal. post is default when searching but
http://drupal.org/search?keys=http%20get
works as well
--
groets
bertb, http://willy.boerland.com/myblog
--
groets
bert boerland
why not get as default?
So why isn't get the default for search forms? Now, when a user does a search, he can't bookmark or link to it. To do this, he would need to hack the URL (assuming he knew that the search-handler accepted both URL query variables as well as POST variables. That's a usability issue, isn't it?
Because the search-handler already supports both GET and POST, the only thing that needs to be changed is the form HTML (method="get").
Update on Get Searching
the new version of drupal 4.6 and up must have a new way to do this.
Try: http://drupal.org/search/node?keys=http%20get
or http://drupal.org/search/node/http%20get
David McIntosh
neofactor.com