Page 1 of 1

URLEncode

Posted: Fri Feb 13, 2009 8:18 pm
by slawek
I tried to encode url for api requests. May be some error in encoding, but i didn't see it :)

"http://localhost:8087/api?Password=pass ... %2cBalance"

As result i receive en error:

"Result=Error
Error=Invalid Command: AccountsList&Fields=Player,PW,Balance"

Am i doing something wrong?

Thank you. :)

Re: URLEncode

Posted: Fri Feb 13, 2009 10:01 pm
by Kent Briggs
Do not encode the equals signs (=) or the ampersands (&) in between the parameters. Only encode those if they are in the values themselves.