{"action":"created","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/525","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/525/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/525/events","html_url":"https://github.com/kataras/iris/issues/525","id":187570412,"number":525,"title":"How to get HTTP Referer URL?","user":{"login":"dxvgef","id":5192264,"avatar_url":"https://avatars.githubusercontent.com/u/5192264?v=3","gravatar_id":"","url":"https://api.github.com/users/dxvgef","html_url":"https://github.com/dxvgef","followers_url":"https://api.github.com/users/dxvgef/followers","following_url":"https://api.github.com/users/dxvgef/following{/other_user}","gists_url":"https://api.github.com/users/dxvgef/gists{/gist_id}","starred_url":"https://api.github.com/users/dxvgef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxvgef/subscriptions","organizations_url":"https://api.github.com/users/dxvgef/orgs","repos_url":"https://api.github.com/users/dxvgef/repos","events_url":"https://api.github.com/users/dxvgef/events{/privacy}","received_events_url":"https://api.github.com/users/dxvgef/received_events","type":"User","site_admin":false},"labels":[{"id":318872878,"url":"https://api.github.com/repos/kataras/iris/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-06T16:07:32Z","updated_at":"2016-11-06T17:24:04Z","closed_at":null,"body":"- Version : **V4-LTS**\r\n\r\n--------------\r\n\r\nHi, how can I get http referer url in iris?"},"comment":{"url":"https://api.github.com/repos/kataras/iris/issues/comments/258695734","html_url":"https://github.com/kataras/iris/issues/525#issuecomment-258695734","issue_url":"https://api.github.com/repos/kataras/iris/issues/525","id":258695734,"user":{"login":"kataras","id":2321588,"avatar_url":"https://avatars.githubusercontent.com/u/2321588?v=3","gravatar_id":"","url":"https://api.github.com/users/kataras","html_url":"https://github.com/kataras","followers_url":"https://api.github.com/users/kataras/followers","following_url":"https://api.github.com/users/kataras/following{/other_user}","gists_url":"https://api.github.com/users/kataras/gists{/gist_id}","starred_url":"https://api.github.com/users/kataras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kataras/subscriptions","organizations_url":"https://api.github.com/users/kataras/orgs","repos_url":"https://api.github.com/users/kataras/repos","events_url":"https://api.github.com/users/kataras/events{/privacy}","received_events_url":"https://api.github.com/users/kataras/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T17:24:04Z","updated_at":"2016-11-06T17:24:04Z","body":"Hi,\r\n\r\n`Referer` is just a header, you can get header's values from request using the `context.RequestHeader` \r\n or response headers using `context.Response.Header` , example:\r\n``` go\r\n\r\nfunc(ctx *iris.Context){\r\n   referer := ctx.RequestHeader(\"Referer\")\r\n}\r\n\r\n```\r\n\r\nBut do not rely on http referer header, it can be alted, read more here: http://stackoverflow.com/questions/6023941/how-reliable-is-http-referer\r\n\r\nHope that helps you"}}
{"actor":{"display_login":"kataras"}}