Allow for "HTTP POST"ed search queries #170

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@patricklodder

I too ran into the situation where my queries were becoming too long. I tried to isolate the work @hofmeister did in his fork but found it faster to just re-fork and re-code; credits should go to him, not me.

NOTE: This patch does 'work' but it does not have proper exception handling. For example, if the request Content-Type is not set properly, NullPointerExceptions occur. If I can find the time, I'll try to improve it.

CURL Syntax:

curl -X POST -H "Content-Type:text/plain" -d "default:hello" \
  http://couch:5984/_fti/local/database/_design/document/index?limit=1000
@patricklodder
Owner

supports HTTP POST queries using Content-Type = text/plain

curl -X POST -H "Content-Type:text/plain" -d "default:hello" \
  http://couch:5984/_fti/local/database/_design/document/index?limit=1000
@rnewson rnewson pushed a commit that referenced this pull request Mar 22, 2014
Robert Newson Support POST for queries
closes #87, #112, #170, #188.
7a2fa62
@rnewson
Owner
rnewson commented Mar 22, 2014

fixed.

@rnewson rnewson closed this Mar 22, 2014
@patricklodder patricklodder deleted the patricklodder:fc44432d7cee3e6086d9787d3e458f0ea1c6dc82 branch Mar 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment