[AC-2534] Android: Abort call of HTTPClient resets session
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-11-26T21:22:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, httpclient |
Reporter | Soumya Kanti Kar |
Assignee | Anirudh Nagesh |
Created | 2012-08-24T05:23:55.000+0000 |
Updated | 2016-03-08T07:41:36.000+0000 |
Description
We are unable to provide the source code as it is client code and we cannot share it. But will try to share the issue that we are facing with the abort call in Android.
We login into our application by providing an username and password.
We download a file using HTTPClient
After sometime we call httpClient.abort()
We again try to download the file again.
We get 401 response from the server.
This happens in Android only but works fine in iOS. Can someone from the Appcelerator team give some light on this.
Looks like you need to set the headers for authentication like below. xhr.setRequestHeader('property_name', 'property_value'); If you can provide a sample reproducible test case, I can help. Otherwise pls look at KitchenSink examples. Regards, Anirudh
Will re-open once the requested information has been provided.