Spaces in Requests
Because a REST request is a URL, there can be no spaces between the parts of a request.
A browser will stop reading when it encounters the first space. For example, if the
last
parameter is Keywords=Blue Shirts
, the request will end at Blue
.
You must URL-encode spaces with %20. The following example includes a URL-encoded
space.
Keywords=Blue%20Shirts
The same problem occurs if you have spaces between the parameters in a request.
SearchIndex=Apparel& Keywords=Shirt
In the example, the request ends at Apparel&
. This returns an error,
because required parameters are not read. As a best practice, verify spaces are removed
or
URL-encoded.