{"action":"opened","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1771","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1771/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1771/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1771/events","html_url":"https://github.com/Codeception/Codeception/issues/1771","id":60697267,"number":1771,"title":"SSL and non-SSL URLs (Basic Auth)","user":{"login":"craigwillis85","id":1765157,"avatar_url":"https://avatars.githubusercontent.com/u/1765157?v=3","gravatar_id":"","url":"https://api.github.com/users/craigwillis85","html_url":"https://github.com/craigwillis85","followers_url":"https://api.github.com/users/craigwillis85/followers","following_url":"https://api.github.com/users/craigwillis85/following{/other_user}","gists_url":"https://api.github.com/users/craigwillis85/gists{/gist_id}","starred_url":"https://api.github.com/users/craigwillis85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigwillis85/subscriptions","organizations_url":"https://api.github.com/users/craigwillis85/orgs","repos_url":"https://api.github.com/users/craigwillis85/repos","events_url":"https://api.github.com/users/craigwillis85/events{/privacy}","received_events_url":"https://api.github.com/users/craigwillis85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T17:37:02Z","updated_at":"2015-03-11T17:37:02Z","closed_at":null,"body":"\r\nHI\r\n\r\nI'm using PhantomJS for my funtional tests and I'm having a massive issue with https:// and http:// and HTTP Basic Auth.\r\n\r\nMy main site is for example: `http://www.example.com`\r\n\r\nI put this into my PhantomJS configuration and all is fine.\r\n\r\nMy application sets specific URLs to be `https://` and others not (this is defined in the codebase, not any htaccess).\r\n\r\nThe issue is when I'm on a `https://` domain, such as `https://www.example.com/login`. If I use the base URL of `http://www.example.com` and try to go to the `/login` page, the PhantomJS config will pass in the Basic Auth details (username/password), but it will redirect to `https://` where Basic Auth will be asked for again.\r\n\r\nThis means I cannot get past this and all of my tests fail (that require `https://`)\r\n\r\nHas anyone come across this before?\r\n\r\nThanks"}}