Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5037] http 301 redirect (http > https) does not work (still) in Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionHold
Resolution Date2017-06-23T18:29:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterMark Henderson
AssigneeShak Hossain
Created2017-06-19T05:01:37.000+0000
Updated2017-06-23T18:29:02.000+0000

Description

I wish to force my existing clients from http:// > https:// to do this I have automatic https rewrites turned on on my domain. This works fine on iOS, the 301 redirect is followed and the HTTPClient follows the redirect. On Android this is not the case. I am using the latest SDK 6.1.0GA (all SDK versions have this bug as far as I can see). For example if you go to: http://uk.markive.co.uk you will see in Chrome the 301 redirect to https://. In iOS this a httpclient connection to this URL will redirect on Android it will throw and error. This is not consistent..

Comments

  1. Yordan Banev 2017-06-19

    Hello! Would you be able to provide a code snippet that reproduces the issue?
  2. Mark Henderson 2017-06-20

    I can see that if I make a 'GET' then autoredirect does work in Android as it does in iOS. If I make a 'POST' then it doesn't redirect. Apparently this can be dangerous if you auto-direct based on a POST, so I am ok to close.

JSON Source