{"action":"created","issue":{"url":"https://api.github.com/repos/macbre/phantomas/issues/273","labels_url":"https://api.github.com/repos/macbre/phantomas/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/macbre/phantomas/issues/273/comments","events_url":"https://api.github.com/repos/macbre/phantomas/issues/273/events","html_url":"https://github.com/macbre/phantomas/issues/273","id":30681319,"number":273,"title":"HTTP request headers","user":{"login":"TBeijen","id":150935,"avatar_url":"https://avatars.githubusercontent.com/u/150935?v=3","gravatar_id":"","url":"https://api.github.com/users/TBeijen","html_url":"https://github.com/TBeijen","followers_url":"https://api.github.com/users/TBeijen/followers","following_url":"https://api.github.com/users/TBeijen/following{/other_user}","gists_url":"https://api.github.com/users/TBeijen/gists{/gist_id}","starred_url":"https://api.github.com/users/TBeijen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TBeijen/subscriptions","organizations_url":"https://api.github.com/users/TBeijen/orgs","repos_url":"https://api.github.com/users/TBeijen/repos","events_url":"https://api.github.com/users/TBeijen/events{/privacy}","received_events_url":"https://api.github.com/users/TBeijen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/macbre/phantomas/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-04-02T11:58:41Z","updated_at":"2015-03-11T22:03:16Z","closed_at":"2014-04-02T19:41:47Z","body":"It would be nice if it is possible to specify certain headers to be included in the request. Some common use-cases:\r\n* Authorization\r\n* Host\r\n\r\nIf seen as good feature, some things to consider:\r\n* Combined with user agent or cookie, which will have precedence?\r\n* Syntax of param, possibilities include:\r\n    * JSON string, e.g. --headers=\"{'Host': 'www.mysite.com', 'foo': 'bar'}\"\r\n    * CURL style, e.g. --header \"Host: www.mysite.com\" --header \"foo: bar\"\r\n"},"comment":{"url":"https://api.github.com/repos/macbre/phantomas/issues/comments/78382374","html_url":"https://github.com/macbre/phantomas/issues/273#issuecomment-78382374","issue_url":"https://api.github.com/repos/macbre/phantomas/issues/273","id":78382374,"user":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T22:03:16Z","updated_at":"2015-03-11T22:03:16Z","body":"`curl -x localhost:80 http://testing.domain` works fine for me with Apache. True, it does not set the `Host` header explicitly, but Apache uses the correct vhost."}}