I\'m trying to authenticate to an API, which only allows you to authenticate using a POST with JSON as form data, in the format of {\"username\":\"myusername\",\"password\":
For cross domain stuff use JSONP (search for crossDomain)
http://www.ibm.com/developerworks/library/wa-aj-jsonp1/