{ "id": "111488", "key": "TIMOB-13163", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-03-21T11:33:04.000+0000", "priority": null, "labels": [ "api", "ios" ], "versions": [], "issuelinks": [ { "id": "26893", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "111487", "key": "AC-2575", "fields": { "summary": "iOS: HTTPClient enableKeepAlive property true doesn't work", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "45101", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "143340", "key": "TIMOB-18423", "fields": { "summary": "iOS: HTTPClient: setRequestHeader('X-Requested-With', null) ignored in iOS", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h1. Problem description\r\n\r\nWhen I create a HTTPClient and use the setRequestHeader method this doesn't have effect for some headers.\r\n\r\nHeaders that are nog being set:\r\nAccept-Encoding (in the code example i set this to 'gzip, deflate', in the sniffer the value is 'gzip'.)\r\nConnection (in the code example i set this to 'Keep-Alive', in the sniffer the value is 'close'.)\r\n(maybe there are more headers that are not being set but I tested with this 2 headers)\r\n\r\nHeaders that are set correctly:\r\nAccept\r\nAccept-Language\r\nUser-Agent\r\n\r\nIn the attachment you can find the code as well as a screenprint of fiddler (the http sniffer tool i use)\r\n ", "attachment": [ { "id": "36522", "filename": "fiddler2.PNG", "author": { "name": "stefan@hestec.nl", "key": "stefan@hestec.nl", "displayName": "Stefan Hes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T11:33:04.000+0000", "size": 72109, "mimeType": "image/png" }, { "id": "36521", "filename": "httpclient code.txt", "author": { "name": "stefan@hestec.nl", "key": "stefan@hestec.nl", "displayName": "Stefan Hes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T11:33:04.000+0000", "size": 480, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: HTTPClient setRequestHeader does not work for some headers", "creator": { "name": "stefan@hestec.nl", "key": "stefan@hestec.nl", "displayName": "Stefan Hes", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stefan@hestec.nl", "key": "stefan@hestec.nl", "displayName": "Stefan Hes", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium/3.02.GA\r\nIphone IOS 6.1.2", "comment": { "comments": [ { "id": "291017", "author": { "name": "hardwickj", "key": "hardwickj", "displayName": "James Hardwick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seeing similar behavior on iOS only. Works as expected on Android (TC-3707)", "updateAuthor": { "name": "hardwickj", "key": "hardwickj", "displayName": "James Hardwick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T23:30:34.000+0000", "updated": "2014-02-03T23:30:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }