[TIMOB-5059] "302 Found" redirect drop authorization header
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-14T13:49:59.000+0000 |
Affected Version/s | Release 1.6.0 |
Fix Version/s | n/a |
Components | Android |
Labels | defect, httpclient, ios, reported-1.6.1 |
Reporter | David Bankier |
Assignee | Thomas Huelbert |
Created | 2011-08-19T13:57:29.000+0000 |
Updated | 2011-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).
Get sample code from 3360, iOS returns a 200 response and android returns 0.0
turns out his is a test case issue, assigning to myself until we set up an 302 redirect
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