{"action":"created","issue":{"url":"https://api.github.com/repos/cobrateam/splinter/issues/241","labels_url":"https://api.github.com/repos/cobrateam/splinter/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/cobrateam/splinter/issues/241/comments","events_url":"https://api.github.com/repos/cobrateam/splinter/issues/241/events","html_url":"https://github.com/cobrateam/splinter/issues/241","id":16384840,"number":241,"title":"\"visit\" API call looks to access the url twice","user":{"login":"kakusuke","id":999352,"avatar_url":"https://avatars.githubusercontent.com/u/999352?v=3","gravatar_id":"","url":"https://api.github.com/users/kakusuke","html_url":"https://github.com/kakusuke","followers_url":"https://api.github.com/users/kakusuke/followers","following_url":"https://api.github.com/users/kakusuke/following{/other_user}","gists_url":"https://api.github.com/users/kakusuke/gists{/gist_id}","starred_url":"https://api.github.com/users/kakusuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakusuke/subscriptions","organizations_url":"https://api.github.com/users/kakusuke/orgs","repos_url":"https://api.github.com/users/kakusuke/repos","events_url":"https://api.github.com/users/kakusuke/events{/privacy}","received_events_url":"https://api.github.com/users/kakusuke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2013-07-05T01:55:41Z","updated_at":"2015-05-17T20:58:22Z","closed_at":null,"body":"Hi,\r\n\r\nI started a django dev server, and accessed the top page of the server using by django shell:\r\n```\r\nfrom splinter.browser import Browser\r\nbrowser = Browser('phantomjs')\r\nbrowser.visit('http://localhost:8080/')\r\n```\r\n\r\nserver log is:\r\n```\r\n[04/Jul/2013 20:31:44] \"GET / HTTP/1.1\" 200 0\r\n[04/Jul/2013 20:31:44] \"GET / HTTP/1.1\" 200 0\r\n```\r\n\r\nWhy did the \"visit\" method call access the page twice?\r\nIt looks bit strange to me.\r\n\r\nthanks."},"comment":{"url":"https://api.github.com/repos/cobrateam/splinter/issues/comments/102857585","html_url":"https://github.com/cobrateam/splinter/issues/241#issuecomment-102857585","issue_url":"https://api.github.com/repos/cobrateam/splinter/issues/241","id":102857585,"user":{"login":"andrewsmedina","id":52241,"avatar_url":"https://avatars.githubusercontent.com/u/52241?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsmedina","html_url":"https://github.com/andrewsmedina","followers_url":"https://api.github.com/users/andrewsmedina/followers","following_url":"https://api.github.com/users/andrewsmedina/following{/other_user}","gists_url":"https://api.github.com/users/andrewsmedina/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsmedina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsmedina/subscriptions","organizations_url":"https://api.github.com/users/andrewsmedina/orgs","repos_url":"https://api.github.com/users/andrewsmedina/repos","events_url":"https://api.github.com/users/andrewsmedina/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsmedina/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T20:58:22Z","updated_at":"2015-05-17T20:58:22Z","body":"Today I have pushed a commit that is a partial solution for this problem. Now, splinter process status_code only when it is needed. So, the duplicate request will happen only to get the status code. Avoiding the problem on visit.\r\n"}}