[TIMOB-13920] MobileWeb: HTTPClient: status is always 0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-26T22:21:12.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Yaroslav Pidstryhach |
Assignee | Chris Barber |
Created | 2013-05-09T12:02:22.000+0000 |
Updated | 2018-04-04T23:20:26.000+0000 |
Description
*Reproduction steps:*
- create an HTTPClient, send a request
- see text in alerts
or
- run attached project
*Expected behavior:*
alerts should open one by one with follow text:
onreadystatechange status: 401
onreadystatechange status: 401
onreadystatechange status: 401
onerror status: 401
*Actual behavior:*
alerts open one by one with
onreadystatechange status: 0
onreadystatechange status: 0
onreadystatechange status: 0
onerror status: 0
Same behavior when actual status is 200.
*Tested on:*
Chrome 18.0.1025469 (Android 4.0.3)
WebKit/534.30 (Android 4.0.3)
WebKit/r123997 (Tizen 2.0)
Code Example:
var url = 'http://tools.dynamicdrive.com/password/example/';
var request = Titanium.Network.createHTTPClient();
request.open('GET',url);
request.send();
request.onreadystatechange = function(){
alert('onreadystatechange status: ' + this.status);
}
request.onerror = function() {
alert('onerror status: ' + this.status);
}
Tested and confirmed with 3.1 GA and 3.2 CI on Android 2.3.6 Web browser and Firefox.
Resolving as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.