{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1387","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1387/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1387/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1387/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1387","id":114041361,"number":1387,"title":"Bad response StatusCode with redirection","user":{"login":"LeMoussel","id":1816573,"avatar_url":"https://avatars.githubusercontent.com/u/1816573?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMoussel","html_url":"https://github.com/LeMoussel","followers_url":"https://api.github.com/users/LeMoussel/followers","following_url":"https://api.github.com/users/LeMoussel/following{/other_user}","gists_url":"https://api.github.com/users/LeMoussel/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMoussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMoussel/subscriptions","organizations_url":"https://api.github.com/users/LeMoussel/orgs","repos_url":"https://api.github.com/users/LeMoussel/repos","events_url":"https://api.github.com/users/LeMoussel/events{/privacy}","received_events_url":"https://api.github.com/users/LeMoussel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cefsharp/CefSharp/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cefsharp/CefSharp/milestones/18","html_url":"https://github.com/cefsharp/CefSharp/milestones/45.0.0","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/milestones/18/labels","id":1254320,"number":18,"title":"45.0.0","description":"Based on 2454 branch of CEF","creator":{"login":"amaitland","id":307872,"avatar_url":"https://avatars.githubusercontent.com/u/307872?v=3","gravatar_id":"","url":"https://api.github.com/users/amaitland","html_url":"https://github.com/amaitland","followers_url":"https://api.github.com/users/amaitland/followers","following_url":"https://api.github.com/users/amaitland/following{/other_user}","gists_url":"https://api.github.com/users/amaitland/gists{/gist_id}","starred_url":"https://api.github.com/users/amaitland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaitland/subscriptions","organizations_url":"https://api.github.com/users/amaitland/orgs","repos_url":"https://api.github.com/users/amaitland/repos","events_url":"https://api.github.com/users/amaitland/events{/privacy}","received_events_url":"https://api.github.com/users/amaitland/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":47,"state":"open","created_at":"2015-08-13T21:33:52Z","updated_at":"2015-10-31T11:03:43Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-10-29T12:44:38Z","updated_at":"2015-11-02T09:04:40Z","closed_at":"2015-10-29T22:07:13Z","body":"I intercept response before returning it to the browser with the `OnResourceResponse` method like this \r\n````C#\r\nbool IRequestHandler.OnResourceResponse(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response)\r\n{\r\n            // Some stuff ...\r\n            Console.WriteLine(\"HTTP Status Code: {0}\", response.StatusCode);\r\n\r\n            // allow the resource to load normally\r\n            return false;\r\n}\r\n````\r\n\r\nBut with redirection (3xx), `response.StatusCode` is set to 200 (OK), not with the 3xx value.\r\nI test it with this url http://crawlbin.com/response_301/ that have an HTTP Status: 301 (Moved Permanently) to http://crawlbin.com/\r\n"},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/152962143","html_url":"https://github.com/cefsharp/CefSharp/issues/1387#issuecomment-152962143","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1387","id":152962143,"user":{"login":"amaitland","id":307872,"avatar_url":"https://avatars.githubusercontent.com/u/307872?v=3","gravatar_id":"","url":"https://api.github.com/users/amaitland","html_url":"https://github.com/amaitland","followers_url":"https://api.github.com/users/amaitland/followers","following_url":"https://api.github.com/users/amaitland/following{/other_user}","gists_url":"https://api.github.com/users/amaitland/gists{/gist_id}","starred_url":"https://api.github.com/users/amaitland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaitland/subscriptions","organizations_url":"https://api.github.com/users/amaitland/orgs","repos_url":"https://api.github.com/users/amaitland/repos","events_url":"https://api.github.com/users/amaitland/events{/privacy}","received_events_url":"https://api.github.com/users/amaitland/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T09:04:40Z","updated_at":"2015-11-02T09:04:40Z","body":"Was `OnResourceRedirect` called?"}}