var testClientConnection = function(e) { var url = "http://10.228.251.89:8080/PDASyncA7/Syncactivities.asmx/IValidateUserID?UserID=test" Ti.API.info("Received text: " + url); var client1 = Ti.Network.createHTTPClient({ username :"test", password :"pass", withCredentials: true, domain : "CORP", onload : function(e) { Ti.API.info("Received text-set: " + this.responseText); alert('ok') ; client1.abort(); client1 = null; }, // function called when an error occurs, including a timeout onerror : function(e) { client1.abort(); client1 = null; alert('err' + e.error); }, timeout : 60000 // in milliseconds }); client1.open("GET", url); // Send the request. client1.send(); };