Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6718] MobileWeb: Ti.Network.HTTPClient doesn't properly implement readyState, timeouts, and error handling

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-20T14:21:06.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2011-51, Release 2.0.0, Release 1.8.1
ComponentsMobileWeb
Labelsmerge-1.9.0, stage
ReporterChris Barber
AssigneeChris Barber
Created2011-12-16T03:37:32.000+0000
Updated2017-03-03T23:22:00.000+0000

Description

Ti.Network.HTTPClient does not define the proper constants for readyState, nor returns the correct constants when readyState is invoked. Timeouts are completely incorrectly implemented. The way it was implemented would only work in IE8 which isn't even a supported platform. Error handling is only tied into connection errors and not 4XX or 5XX response statuses.

Comments

  1. Chris Barber 2011-12-16

    Pull request: https://github.com/cb1kenobi/titanium_mobile/pull/8
  2. Bryan Hughes 2011-12-20

    Merged in to cb1kenobi's repo until 1.8->1.9 transition is stable in appcelerator repo.
  3. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source