0

I want to test my REST API which has a URI something like this:

/myrestAPI/search?startTime=0&endTime=10&count=8&filters={"params": [{"field":"Topic","value":"Algorithms","type":"MATCH_EXACT"}]} 

How would I do that. The httperf reply status is "505 HTTP Version Not Supported" I know that this uri the httperf is not properly encoding and sending it..

How would I achieve that in httperf?

2
  • Any Idea how to achieve above??? Commented Aug 11, 2013 at 17:52
  • Does anybody have any idea about achieving that. I have spent like a week in doing all sorts o permutations and combinations... Help me Commented Aug 14, 2013 at 5:27

1 Answer 1

0

Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

For you case, it would be:

/myrestAPI/search?startTime=0&endTime=10&count=8&filters=%7B%22params%22%3A%20%5B%7B%22field%22%3A%22Topic%22%2C%22value%22%3A%22Algorithms%22%2C%22type%22%3A%22MATCH_EXACT%22%7D%5D%7D 

Try to experiment with URL encoder/decoder

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.