Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25760

Windows: Titanium.Network.HTTPClient Location doesn't return the redirected URL

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.1
    • Fix Version/s: Release 8.0.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 10
      SDK : 7.0.1

    • Story Points:
      8
    • Sprint:
      2018 Sprint 05 SDK, 2018 Sprint 04 SDK, 2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 15 SDK, 2016 Sprint 17 SDK, 2018 Sprint 18 SDK, 2018 Sprint 19 SDK, 2018 Sprint 20 SDK, 2018 Sprint 21, 2018 Sprint 25

      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();

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              alka.gurung alka.gurung
              Reviewer:
              Josh Longton
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6165
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code