Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17612] Android: Support for HTTPClient not decompressing gzipped ... #6530

Merged
merged 1 commit into from Jan 6, 2015

Conversation

ashcoding
Copy link
Contributor

...data for error responses

Jira: https://jira.appcelerator.org/browse/TIMOB-17612

@ashcoding
Copy link
Contributor Author

Test app.js

var url = "https://api.stackexchange.com/2.2/answers?order=desc&sort=activity&site=stackoverflo2w";
 var client = Ti.Network.createHTTPClient({
     // function called when the response data is available
     onload : function(e) {
         Ti.API.info("Received text: " + this.responseText);
         alert('success');

     },
     // function called when an error occurs, including a timeout
     onerror : function(e) {
         Ti.API.debug(e.error);
          alert('error ' + this.responseText);

     },
     timeout : 5000  // in milliseconds
 });
 // Prepare the connection.
 client.open("GET", url);
 // Send the request.
 client.send();

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Request accepted

hieupham007 added a commit that referenced this pull request Jan 6, 2015
[TIMOB-17612] Android: Support for HTTPClient not decompressing gzipped ...
@hieupham007 hieupham007 merged commit 975144a into tidev:master Jan 6, 2015
@ashcoding ashcoding deleted the TIMOB-17612 branch May 21, 2015 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants