Closed
Bug 939851
Opened 11 years ago
Closed 7 years ago
XMLHttpRequest FFOS v1.1 Alcatel, CORS problem?
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dev, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release)
Build ID: 20131025151332
Steps to reproduce:
//you try to connect to a HTTPS URL using XMLHttpRequest
function getBinaryQ(){
try{
var file = "http://connecta2.net/server6b.php";
var params = "get=AUTH&password=azMXsqnjSvZIBnpjI9y1Jy83Tns=&tlf=34111111111&imei=æ±\zÚëzÕÀu©õ¬¡ev±&alias=jm&ncha=";
var xhr = new XMLHttpRequest({ mozSystem: true });
xhr.open("POST", file, true);
xhr.onload = function (e) {
alert('OK');
};
xhr.onerror = function (e) {
if(e.name==undefined &&e.message==undefined){
alert('ERROR V1.1 Alcatel');
}
};
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.withCredentials = true;
}catch(err){
alert('Other error not related with the issue');
}
}
Actual results:
ERROR: xhr.onerror
Expected results:
if you try using the navigator, you get the right response.
Request:
http://connecta2.net/server6b.php?get=AUTH&password=azMXsqnjSvZIBnpjI9y1Jy83Tns=&tlf=34111111111&imei=%C3%A6%1F%C2%B1\z%C3%9A%C3%ABz%13%C3%95%C3%80u%C2%A9%C3%B5%C2%AC%C2%A1ev%05%C2%B1&alias=jm&ncha=
Response:
{"mdata":"AAAV+AcQ6M9t7Nr8CzM0MTExMTExMTEx","rsij":{"s":"","i":"","j":""},"categories":"Lg==","sdata":"V0EBAgAAHfgFAcirpfwVQW5kcm9pZC0yLjExLjExMy01MjIy","sfeat":"AAAL+AK7+AL4AZz4Abk="}
Comment 1•7 years ago
|
||
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•