Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2596] iOS: support HTTPClient.autoEncodeUrl

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionWon't Do
Resolution Date2020-02-19T14:47:52.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ComponentsiOS
Labelsparity, tbs-1.9.0, training
ReporterBill Dawson
AssigneeIngo Muschenetz
Created2011-04-15T03:24:02.000+0000
Updated2020-02-19T14:47:52.000+0000

Description

Android team added this boolean property (default = true, which preserves existing behavior). When set to false, we will make no effort to encode the url passed in .open().

See #2589 if you need further details.

example:

var xhr = Ti.Network.createHTTPClient();
xhr.autoEncodeUrl = false;
xhr.open('GET', 'http://blahblah;wee@@what??!!');

Comments

  1. florian bergmann 2011-11-02

    If I'd get you right, I can confirm this issue and well, I would love to see this fixed soon so we can work... On android setting this to false has no affect on the this.location of a xhr request. I'm a little bit confused by the iOS: part in the title. or is there a workaround? --- edit: I can see this:
       var xhr = Ti.Network.createHTTPClient({ autoEncodeUrl : false });
       
    does not work BUT
       var xhr = Ti.Network.createHTTPClient();
       xhr.autoEncodeUrl = false;
       
    does work...

JSON Source