Problem with a REST API Call
Posted: Thu Jan 11, 2024 3:13 pm
I am trying to use a Parse server which I haven't played with in a long time. I am having a problem with the REST API, all of the calls I am making are returning a "400 Bad Request Error" and my tinkering has proven futile thus far.
So as an example, I am trying to replicate the following (which works)
So I am doing the following:
and I get:
can anyone see a problem in my syntax?
So as an example, I am trying to replicate the following (which works)
Code: Select all
curl -X GET
-H "X-Parse-Application-Id: QQQQQ"
-H "X-Parse-Master-Key: ZZZZZ"
https://pg-app-XXXXXX.scalable.cloud/1/serverInfo
Code: Select all
put "X-Parse-Application-Id: QQQQQ" & CRLF & "X-Parse-Master-Key: ZZZZZ" into tHeaders
set the htmlHeaders to tHeaders
put URL("https://pg-app-XXXXXX.scalable.cloud/1/serverInfo") into tServerInfo
Code: Select all
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>