views:

134

answers:

1

hi, My rails application is running on thin server which i want to benchmark using apachebench

the command am using is

ab -n 1 -c 1 http://localhost:3001/welcome/search?query="doctor"&rad=5

But thin server is not taking this url.Its giving

!! Invalid Request

Can any one help me how to give the url such that thin accepts the url with query string

A: 

Your query string is not properly encoded. Remove the double quote. If it's needed, you need to send it like this,

ab -n 1 -c 1 http://localhost:3001/welcome/search?query=%22doctor%22&rad=5
ZZ Coder
yeah you were right.I removed double quote so Invalid request is resolved. NOw suppose my query is http://localhost:3001/welcome/search?query=%22medical%20college%22
kshama
Tomas Markauskas
PythonUser