GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-12T11:10:32.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | MobileWeb |
Labels | mw-list |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-01-12T17:08:45.000+0000 |
Updated | 2017-03-24T20:52:11.000+0000 |
Extends Evented.
Properties:
* file - TODO (setter should only work AFTER open() is called)
* ondatastream - TODO
* onerror - Done!
* onload - Done!
* onreadystatechange - Done!
* onsendstream - TODO: NEEDS TESTING
* timeout - Done!
Constants:
* connected - Done!
* connectionType - Done!
* location - Done!
* readyState - Done!
* responseData - TODO: returns a Ti.Blob
* responseText - Done!
* responseXML - Done!
* status - Done!
Update API docs including not "validatesSecureCertificate" is unsupported.
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1786
While the sample app.js code works, typical usage of the HTTP client does not. The following works on iOS and Android, but not on Mobile Web.
The difference being your test app.js GETs a file (app.js) rather than pulling from an HTTP resource.
This is because google.com is a cross domain resource. This has been documented on the limitations page. The only way for the example above to work is if you define a Ti.Network.httpURLFormatter function to rewrite the URL to a proxy server that you would need to setup.
Closing ticket as fixed with reference to previous comments.