I'm having this weird issue where logging into my production and test servers from my AIR desktop app works fine, but when running on localhost the php returns itself as a string to the app (it should be returning JSON).
The paths are set up ok, as the app's update checker, which runs first, communicates with the server fine.
Here's the basics of the AS3 code that has worked fine for years on the production server, adapted for localhost (_uploadObj cotain vars for post):
var array:Array = new Array();
var request:URLRequest = new URLRequest("http://localhost/login/login.php);
request.method = URLRequestMethod.POST;
var sendVars:URLVariables = new URLVariables();
sendVars.userData = JSON.stringify(array);
sendVars.token = _token;
request.data = sendVars;
I have a trace set up in the first line in completeFunc(), and it traces the following: