[AC-1823] XMLHttpRequest bug with = in query string parameter on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-17T22:01:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio, Titanium SDK & CLI |
Labels | android |
Reporter | john |
Assignee | Shak Hossain |
Created | 2013-07-17T00:16:21.000+0000 |
Updated | 2016-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.
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