URLEncode

Report bugs found in Poker Mavens

URLEncode

Postby slawek » Fri Feb 13, 2009 8:18 pm

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=password&Command%3dAccountsList%26Fields%3dPlayer%2cPW%2cBalance"

As result i receive en error:

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

Am i doing something wrong?

Thank you. :)
slawek
 
Posts: 18
Joined: Fri Feb 13, 2009 2:56 pm

Re: URLEncode

Postby Kent Briggs » Fri Feb 13, 2009 10:01 pm

Do not encode the equals signs (=) or the ampersands (&) in between the parameters. Only encode those if they are in the values themselves.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3805
Joined: Wed Mar 19, 2008 8:47 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron