I’m trying to do an API call that has $gt as a query parameter. This works fine either from the API Console in Kinvey or from Postman, however when I try doing this using a Java HttpURLConnection then I’m getting a 400 response: Your browser sent an invalid request.
Here’s what the query looks like:
appdata/myapp/Summary?query={ “code”:“043”, “time”: { “$gt”: 0 } }
In Java I’ve also tried encoding the dollar sign:
appdata/myapp/Summary?query={ “code”:“043”, “time”: { “%24gt”: 0 } }
If I remove that gt query parameter then it works fine.
I did try that already and didn’t have any luck. I tried using the encoder for the whole string as well as just the query part but I got the exact same problem.