[Gambas-user] ​httpget issue

T Lee Davidson t.lee.davidson at gmail.com
Fri Mar 3 19:41:16 CET 2023


On 3/3/23 11:34, Antonio Teixeira wrote:
> Hi T Lee,
> 
> Thank you for your answer.
> Replacing the data content from "username=a&password=a" to "{'username'='a'&'password'='a'}" did not solve the problem. The 
> answer "Bad Request" remains.
> Any other ideas?
> 
> Atentamente / Regards
> 
> António Teixeira

Oops, what I wrote is not valid JSON either. Try this:
"{\"username\":\"a\",\"password\":\"a\"}"

Or, using the JSON class:
JSON.encode(["username": "a", "password": "a"])

BTW, please quote only the relevant message, not the entire message digest.


-- 
Lee



More information about the User mailing list