{ "id": "63288", "key": "TIMOB-2656", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:43.000+0000", "created": "2011-04-15T03:26:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone", "release-1.6.0", "reported-1.5.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Reported by Julien | October 26th, 2010 @ 08:52 AM | in\n1.2.0
\nHi,
\nI'm using createHTTPClient to POST to a page. I receive a 302.\nTitanium seems to follow through the 302 with another POST, not a\nGET.
\nAny idea why it's that way ? Is it a bug ?
\nI'm filing this ticket for Julien as it was in Desktop, and it\nis a Mobile issue which still exists on the 1.5.1 Mobile SDK.
\nJulien did test and verify it on the 1.5.1 SDK for me. I'm\nassigning this to Marshall, but feel free to move to anyone\nelse.
Hi Alan,
\nI was unable to reproduce the problem your describing on Mobile\nSDK. When I submit a POST request to a test page that returns a 302\nredirect the new request is sent as a GET request according to the\nenvironment variables the test page displays.
\nCan you please provide further details and ideally a test\napp?
\nThanks
Hi,
\nThis issue occurs for me on iPhone, I haven't tested it on\nAndroid. I've included :
\nUpdating tags and assign it to Ralf.
This seems iPhone only, per description.
\nAssigning 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])\n[#2656 state:fixed-in-qa] Actually fix the\n301/302/303 redirect in ASI that the code documentation says was\nfixed. \nhttps://github.com/appcelerator/titanium_mobile/commit/6a69e427c845...
Notes/Comments
Successful iOS Simulator, iOS Device, and Android Emulator test\non 01/25/2011
\n\niOS Simulator: \"POST /appcelerator/test.php HTTP/1.1\" 302 99 \"\n \"GET /appcelerator/test.php HTTP/1.1\" 200 99 \"\n\niPhone: \"POST /appcelerator/test.php HTTP/1.1\" 302 99 \"\n \"GET /appcelerator/test.php HTTP/1.1\" 200 99 \"\n\nEmulator: \"POST /appcelerator/test.php HTTP/1.1\" 302 97 \"\n \"GET /appcelerator/test.php HTTP/1.1\" 200 97 \"
\n
\nMobile SDK version: 1.6.0 (01/25/11 13:33 1f1dd51...)
\nDevice/Version: iPhone 4 / 4.2.1
\nSimulator Version: 4.2 (235)
\nEmulator SDK: APIs 2.1