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?

Prashant Kumar
  • 20,069
  • 14
  • 47
  • 63
user2277149
  • 65
  • 2
  • 8

1 Answers1

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

Chawarong Songserm PMP
  • 1,734
  • 1
  • 14
  • 19