Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2534] Android: Abort call of HTTPClient resets session

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2012-11-26T21:22:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, httpclient
ReporterSoumya Kanti Kar
AssigneeAnirudh Nagesh
Created2012-08-24T05:23:55.000+0000
Updated2016-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.

Comments

  1. Anirudh Nagesh 2012-09-05

    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
  2. Daniel Sefton 2012-11-26

    Will re-open once the requested information has been provided.

JSON Source