Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Developer
Posts: 5
Registered: ‎09-20-2011
My Device: curve
My Carrier: curve

XMLHttpRequest could not select proper transport descriptor

hello guys,


am creation an application for blackberry using phonegap.

In my code i use this code to get data from server:


 var url = "http://......." // here goes my url

var xhr = new XMLHttpRequest(url);
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {

if (xhr.readyState == xhr.DONE) {

if (xhr.status == 200) {

alert("conn sucess");


else {

alert("conn err");

xhr.send("UID=" + nid);


my problem is that the code works fine on bb phones with OS version 6 or above, while with the lower versions the xhr.status = 500 and xhr.responseText returns  "could not select proper transport descriptor error"

does anyone know how to solve this problem?? 




Posts: 34
Registered: ‎10-24-2011
My Device: Curve
My Carrier: Telus

Re: XMLHttpRequest could not select proper transport descriptor

See if this solution helping you.

1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)