{"action":"created","issue":{"url":"https://api.github.com/repos/postmanlabs/newman/issues/321","repository_url":"https://api.github.com/repos/postmanlabs/newman","labels_url":"https://api.github.com/repos/postmanlabs/newman/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/newman/issues/321/comments","events_url":"https://api.github.com/repos/postmanlabs/newman/issues/321/events","html_url":"https://github.com/postmanlabs/newman/issues/321","id":130441537,"number":321,"title":"Newman -u URL doesn't receive headers from postman collection","user":{"login":"marianosckerl","id":14279644,"avatar_url":"https://avatars.githubusercontent.com/u/14279644?v=3","gravatar_id":"","url":"https://api.github.com/users/marianosckerl","html_url":"https://github.com/marianosckerl","followers_url":"https://api.github.com/users/marianosckerl/followers","following_url":"https://api.github.com/users/marianosckerl/following{/other_user}","gists_url":"https://api.github.com/users/marianosckerl/gists{/gist_id}","starred_url":"https://api.github.com/users/marianosckerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianosckerl/subscriptions","organizations_url":"https://api.github.com/users/marianosckerl/orgs","repos_url":"https://api.github.com/users/marianosckerl/repos","events_url":"https://api.github.com/users/marianosckerl/events{/privacy}","received_events_url":"https://api.github.com/users/marianosckerl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-01T18:25:05Z","updated_at":"2016-02-02T17:40:35Z","closed_at":null,"body":"My requests In Postman works perfectly. But i need to add a (Accept: *) header in postman request to work in newman.\r\n\r\nAnother trouble:\r\n\r\nI use newman 1.2.28, when i run newman -u url_collection, headers do not appear.\r\nOnly works if i run newman -c exported_collection.json\r\n\r\nthe request headers in the log (-O user.log) when i send -u url_collection\r\n{\r\n \"host\": \"xxxxxxx.com\",\r\n \"accept-encoding\": \"gzip\",\r\n \"content-type\": \"multipart/form-data; boundary=--------------------------657341298630810124292013\",\r\n \"content-length\": 299\r\n}\r\nResponse body:\r\n{\"type\":\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\",\"title\":\"Not Acceptable\",\"status\":406,\"detail\":\"Cannot honor Accept type specified\"}\r\n-------------------------------------------------------------------------------------------\r\n\r\nIs it some kind of bug?\r\nIs possible to set the headers from command line?\r\nThanks. Mariano"},"comment":{"url":"https://api.github.com/repos/postmanlabs/newman/issues/comments/178707564","html_url":"https://github.com/postmanlabs/newman/issues/321#issuecomment-178707564","issue_url":"https://api.github.com/repos/postmanlabs/newman/issues/321","id":178707564,"user":{"login":"marianosckerl","id":14279644,"avatar_url":"https://avatars.githubusercontent.com/u/14279644?v=3","gravatar_id":"","url":"https://api.github.com/users/marianosckerl","html_url":"https://github.com/marianosckerl","followers_url":"https://api.github.com/users/marianosckerl/followers","following_url":"https://api.github.com/users/marianosckerl/following{/other_user}","gists_url":"https://api.github.com/users/marianosckerl/gists{/gist_id}","starred_url":"https://api.github.com/users/marianosckerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianosckerl/subscriptions","organizations_url":"https://api.github.com/users/marianosckerl/orgs","repos_url":"https://api.github.com/users/marianosckerl/repos","events_url":"https://api.github.com/users/marianosckerl/events{/privacy}","received_events_url":"https://api.github.com/users/marianosckerl/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T17:40:35Z","updated_at":"2016-02-02T17:40:35Z","body":"Hi, here paste the json exported from postman:\r\n\r\nIn postman works perfect. in Newman don't (-u url or -c collection).\r\n{\r\n\t\"id\": \"3169771f-96ea-fae8-4067-5da91d880898\",\r\n\t\"name\": \"prueba\",\r\n\t\"description\": \"\",\r\n\t\"order\": [\r\n\t\t\"469ca211-a588-cea1-8e54-241e200c5717\"\r\n\t],\r\n\t\"folders\": [],\r\n\t\"timestamp\": 1454081438133,\r\n\t\"owner\": \"155921\",\r\n\t\"remoteLink\": \"https://www.getpostman.com/collections/8f547fa9dd0524e9c539\",\r\n\t\"public\": false,\r\n\t\"requests\": [\r\n\t\t{\r\n\t\t\t\"id\": \"469ca211-a588-cea1-8e54-241e200c5717\",\r\n\t\t\t\"headers\": \"\",\r\n\t\t\t\"url\": \"http://local-m.xxxxxx.com/apirest/v6/user_session\",\r\n\t\t\t\"preRequestScript\": \"\",\r\n\t\t\t\"pathVariables\": {},\r\n\t\t\t\"method\": \"POST\",\r\n\t\t\t\"data\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"key\": \"user\",\r\n\t\t\t\t\t\"value\": \"own_mail@patmail.it\",\r\n\t\t\t\t\t\"type\": \"text\",\r\n\t\t\t\t\t\"enabled\": true\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"key\": \"pass\",\r\n\t\t\t\t\t\"value\": \"123456789\",\r\n\t\t\t\t\t\"type\": \"text\",\r\n\t\t\t\t\t\"enabled\": true\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"dataMode\": \"params\",\r\n\t\t\t\"version\": 2,\r\n\t\t\t\"tests\": \"\",\r\n\t\t\t\"currentHelper\": \"normal\",\r\n\t\t\t\"helperAttributes\": {},\r\n\t\t\t\"time\": 1454434269981,\r\n\t\t\t\"name\": \"/user_session\",\r\n\t\t\t\"description\": \"Create the user session:\\n\\n\",\r\n\t\t\t\"collectionId\": \"3169771f-96ea-fae8-4067-5da91d880898\",\r\n\t\t\t\"responses\": []\r\n\t\t}\r\n\t]\r\n}\r\n\r\nThen add the header ---> \"headers\": \"Accept: *\",\r\n\r\n\t\"requests\": [\r\n\t\t{\r\n\t\t\t\"id\": \"469ca211-a588-cea1-8e54-241e200c5717\",\r\n------>\t\t\"headers\": \"Accept: *\\n\",\r\n\t\t\t\"url\": \"http://local-m.xxxxxxxx.com/apirest/v6/user_session\",\r\n\r\nIn postman always works. \r\nwith the new add \"headers\": \"Accept: *\", in newman works only (-c collection). With (-u url) don't.\r\n\r\nThanks.\r\nBest Regards. Mariano."}}