Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1322] iOS: httpclient - redirect issue and cookies

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2012-07-26T11:43:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeNeeraj Gupta
Created2011-04-15T02:49:23.000+0000
Updated2012-07-26T22:33:40.000+0000

Description

a customer is using http client to login to a web site. a successful login causes a redirect. the result is that our http client returns a status of 200 but the cookies are null. if the login fails, the cookies are present. we need to investigate if there is a way to get this use case to work correctly.

here's the ticket with sample code:

http://developer.appcelerator.com/helpdesk/add_comment/28361">http://developer.appcelerator.com/helpdesk/add_comment/28361

Comments

  1. Stephen Tramer 2012-07-25

    Test unavailable. Cannot resolve without an explicit test and configured web server which sends the response which causes the issue.
  2. Chris Dunstall 2012-07-26

    What sort of info do you need? Our authentication system fits into this scenario. I get the above result but I can get the cookie if I use autoRedirect = false.
  3. Stephen Tramer 2012-07-26

    We require full sample code which demonstrates the problem, as stated above.
  4. Chris Dunstall 2012-07-26

    Why was this issue closed? I can provide this code next week (timeline-challenged right now).
  5. Neeraj Gupta 2012-07-26

    @Chris - Please add a test case to this ticket and I would reopen it and schedule it for next release.

JSON Source