{"action":"created","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/435","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-core","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/435/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/435/events","html_url":"https://github.com/serenity-bdd/serenity-core/issues/435","id":158464256,"number":435,"title":"[Question] How to add custom header in request?","user":{"login":"kittugit","id":3399549,"avatar_url":"https://avatars.githubusercontent.com/u/3399549?v=3","gravatar_id":"","url":"https://api.github.com/users/kittugit","html_url":"https://github.com/kittugit","followers_url":"https://api.github.com/users/kittugit/followers","following_url":"https://api.github.com/users/kittugit/following{/other_user}","gists_url":"https://api.github.com/users/kittugit/gists{/gist_id}","starred_url":"https://api.github.com/users/kittugit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittugit/subscriptions","organizations_url":"https://api.github.com/users/kittugit/orgs","repos_url":"https://api.github.com/users/kittugit/repos","events_url":"https://api.github.com/users/kittugit/events{/privacy}","received_events_url":"https://api.github.com/users/kittugit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-03T22:11:25Z","updated_at":"2016-06-06T23:32:25Z","closed_at":"2016-06-06T23:32:25Z","body":"I'm new to Serenity.. using Serenity with JBehave.. Trying to add custom header in request.. \r\nHave added \"net.serenity-bdd:serenity-browsermob-plugin:1.1.26\" as dependency..  so it automatically starts browsermob proxy and executes test cases   but I'm not sure where and how to add header?\r\n\r\nTried the following snippet in different places.. but it doesn't work.. Your help would be appreciated..\r\n\r\n```\r\nFixtureProviderService fixtureProviderService = Injectors.getInjector().getInstance(FixtureProviderService.class);\r\n\t\tfor(FixtureService fixtureService: fixtureProviderService.getFixtureServices()){\r\n\t         if(fixtureService instanceof BrowserMobFixtureService ) {\r\n        \r\n        \t        BrowserMobFixtureService mob = (BrowserMobFixtureService) fixtureService;\r\n                \tBrowserMobProxy proxyServer = mob.getProxyServer();\r\n                \r\n\t                proxyServer.addHeader(\"myheader\", \"myheadervalue\");\r\n                \r\n        \t   }\r\n```"},"comment":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/comments/224120033","html_url":"https://github.com/serenity-bdd/serenity-core/issues/435#issuecomment-224120033","issue_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/435","id":224120033,"user":{"login":"kittugit","id":3399549,"avatar_url":"https://avatars.githubusercontent.com/u/3399549?v=3","gravatar_id":"","url":"https://api.github.com/users/kittugit","html_url":"https://github.com/kittugit","followers_url":"https://api.github.com/users/kittugit/followers","following_url":"https://api.github.com/users/kittugit/following{/other_user}","gists_url":"https://api.github.com/users/kittugit/gists{/gist_id}","starred_url":"https://api.github.com/users/kittugit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittugit/subscriptions","organizations_url":"https://api.github.com/users/kittugit/orgs","repos_url":"https://api.github.com/users/kittugit/repos","events_url":"https://api.github.com/users/kittugit/events{/privacy}","received_events_url":"https://api.github.com/users/kittugit/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T23:32:25Z","updated_at":"2016-06-06T23:32:25Z","body":"Hi @YamStranger .. Thanks for your reply..  Will try the options you have specified..   I understand this is not serenity issue.. if i found concrete solution, will update this.. Now i'm closing this question..  "}}
{"actor":{"display_login":"kittugit"}}