1

I am doing a GET request and in my URL has a parameter to search filter of type string.

It turns out that occasionally the user can insert a slash ("/") as a filter, and then an error occurs.

URL: Http: // localhost: 8080 / api / routes / skip / take / search =

Example: Http: // localhost: 8080 / api / paths / 0/10 / name = /

1 Answers1

1

You might consider urlencoding your search terms before doing your GET. (The slash '/' is encoded as %2f.)

Take a look at this article which expands on the above.

Community
  • 1
  • 1
hippocrene
  • 84
  • 1
  • 7