Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25760] Windows: Titanium.Network.HTTPClient Location doesn't return the redirected URL

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-12-10T21:29:24.000+0000
Affected Version/sRelease 7.0.1
Fix Version/sRelease 8.0.0
ComponentsWindows
Labelsparity
Reporteralka.gurung
AssigneeKota Iguchi
Created2018-02-07T14:56:20.000+0000
Updated2018-12-11T12:28:30.000+0000

Description

Titanium.Network.HTTPClient Location doesn't return the redirected url in windows. It works perfectly on iOS and Android. Sample Code: var _tmpURL = "any url that redirects to other url" var _tmpClient = Ti.Network.createHTTPClient({ onload: function(e) { serverAddressRedirected = _tmpClient.location; //this should return redirected url but returns the url before redirect Ti.API.info("Location:" + serverAddressRedirected); }, onerror : function(e) { alert("Error:" + e.error); }, timeout: 30000 }); _tmpClient.open("GET",_tmpURL); _tmpClient.send();

Comments

  1. Kota Iguchi 2018-02-12

    https://github.com/appcelerator/titanium_mobile_windows/pull/1182
  2. Ewan Harris 2018-02-20

    Master PR merged, needs backport to 7.1.0 branch
  3. Kota Iguchi 2018-02-20

    backport for 7.1.0: https://github.com/appcelerator/titanium_mobile_windows/pull/1191
  4. Kota Iguchi 2018-03-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/1189
  5. Kota Iguchi 2018-10-11

    Seems like this makes LiveView unstable.
  6. Kota Iguchi 2018-11-15

    Attempt to fix issue with liveview: https://github.com/appcelerator/titanium_mobile_windows/pull/1318
  7. Josh Longton 2018-12-10

    *FR Passed*
  8. Samir Mohammed 2018-12-11

    Closing ticket, fix verified in SDK version 8.0.0.v20181210172243. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1318

JSON Source