JSON and Basic Auth in iOS
===

i have to do:

Any request to the server should be signed and sent using POST (Basic Auth)
Here is the POST data to be signed.
login: loginX
password: paswordY


then I have to log into the portal:
query execution:
{
			  "method": "authorize",
			  "params": [
			    "xxxxxxxx",
			    "yyyyyyyyy"
			  ]
			}
for this endpoint:
http://aaaaaa.com/zzzzz/authorize/?ver=2_01

how to do it?