Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13163] iOS: HTTPClient setRequestHeader does not work for some headers

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsapi, ios
ReporterStefan Hes
AssigneeUnknown
Created2013-03-21T11:33:04.000+0000
Updated2018-02-28T20:04:07.000+0000

Description

Problem description

When I create a HTTPClient and use the setRequestHeader method this doesn't have effect for some headers. Headers that are nog being set: Accept-Encoding (in the code example i set this to 'gzip, deflate', in the sniffer the value is 'gzip'.) Connection (in the code example i set this to 'Keep-Alive', in the sniffer the value is 'close'.) (maybe there are more headers that are not being set but I tested with this 2 headers) Headers that are set correctly: Accept Accept-Language User-Agent In the attachment you can find the code as well as a screenprint of fiddler (the http sniffer tool i use)

Attachments

FileDateSize
fiddler2.PNG2013-03-21T11:33:04.000+000072109
httpclient code.txt2013-03-21T11:33:04.000+0000480

Comments

  1. James Hardwick 2014-02-03

    Seeing similar behavior on iOS only. Works as expected on Android (TC-3707)

JSON Source