Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1823] XMLHttpRequest bug with = in query string parameter on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-09-17T22:01:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
Labelsandroid
Reporterjohn
AssigneeShak Hossain
Created2013-07-17T00:16:21.000+0000
Updated2016-03-08T07:40:43.000+0000

Description

When passing query string parameters to XMLHttpRequest.open method, all instances of '%3D' are reverted back to equal characters before they are sent across the wire. This only happens on Android. e.g. xhr.open('POST', 'http://www.example.com/test.html?param=TEST%3D'); works correctly on iPhone. On Android, server receives params=TEST= instead of param=TEST%3D, causing issues with parameter parsing.

Comments

  1. Shak Hossain 2013-09-17

    Hello, As per description, user try to send parameter value (=) and server read encoded value. This is not a bug it’s an options for android. If user want to stop encoding then user need to set parameter xhr.autoEncodeUrl(false) which is default true for android. For more information please visit following link: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network.HTTPClient-property-autoEncodeUrl Please reopen this with a complete test case if this exists. Thanks

JSON Source