Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5059] "302 Found" redirect drop authorization header

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-09-14T13:49:59.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sn/a
ComponentsAndroid
Labelsdefect, httpclient, ios, reported-1.6.1
ReporterDavid Bankier
AssigneeThomas Huelbert
Created2011-08-19T13:57:29.000+0000
Updated2011-09-14T13:49:59.000+0000

Description

The Titanium.Network.HTTPClient correctly follows a "302 Found" redirect. On the iPhone however it does not carry the http authorization header in the next request (ending in a 401 response from the server). I have not had this a problem with android, ie, the authorization header is in the redirected request.

Problem found using SDK 1.6.0 & 1.6.1 and iOS 4.2 (device and simulator).

Comments

  1. Natalie Huynh 2011-08-19

    Get sample code from 3360, iOS returns a 200 response and android returns 0.0
  2. Thomas Huelbert 2011-08-26

    turns out his is a test case issue, assigning to myself until we set up an 302 redirect
  3. Alan Vaghti 2011-09-14

    Passed as expected on HTC Hero 2.1update1, Nexus One 2.2.2, and Xoom tablet 3.2. All devices returned a 200 response. 302 redirect site used: http://api.appcelerator.net/p/v1/302 SDK used: 1.8.0.v20110914092150

JSON Source