[TIMOB-2656] Problem with redirects on POST
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M05 |
Components | iOS |
Labels | defect, ios, iphone, release-1.6.0, reported-1.5.1 |
Reporter | Alan DuBoff |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:26:04.000+0000 |
Updated | 2011-04-17T01:59:43.000+0000 |
Description
Reported by Julien | October 26th, 2010 @ 08:52 AM | in 1.2.0
Hi,
I'm using createHTTPClient to POST to a page. I receive a 302. Titanium seems to follow through the 302 with another POST, not a GET.
Any idea why it's that way ? Is it a bug ?
Thanks.
I'm filing this ticket for Julien as it was in Desktop, and it is a Mobile issue which still exists on the 1.5.1 Mobile SDK.
Julien did test and verify it on the 1.5.1 SDK for me. I'm assigning this to Marshall, but feel free to move to anyone else.
Attachments
File | Date | Size |
---|---|---|
t2656.tgz | 2011-04-15T03:26:05.000+0000 | 862121 |
Hi Alan,
I was unable to reproduce the problem your describing on Mobile SDK. When I submit a POST request to a test page that returns a 302 redirect the new request is sent as a GET request according to the environment variables the test page displays.
Can you please provide further details and ideally a test app?
Thanks
Hi,
This issue occurs for me on iPhone, I haven't tested it on Android. I've included :
Updating tags and assign it to Ralf.
This seems iPhone only, per description.
Assigning to Steve to see if we can plan for R1.6.0.
Going to assign to M05 as part of the XHR work.
(from [6a69e427c8455c363ef362c40d396c00c0f6d889]) [#2656 state:fixed-in-qa] Actually fix the 301/302/303 redirect in ASI that the code documentation says was fixed. https://github.com/appcelerator/titanium_mobile/commit/6a69e427c8455c363ef362c40d396c00c0f6d889"> https://github.com/appcelerator/titanium_mobile/commit/6a69e427c845...
Notes/Comments
Successful iOS Simulator, iOS Device, and Android Emulator test on 01/25/2011
Mobile SDK version: 1.6.0 (01/25/11 13:33 1f1dd51...)
Device/Version: iPhone 4 / 4.2.1
Simulator Version: 4.2 (235)
Emulator SDK: APIs 2.1