I have a few hundred thousand hotmail emails to check if they are available, and I can't find a public program that can do this anymore so I thought I would make my own. I am using this site to test if they are available or not: (you need an account to see links). However something isn't right because the cookie that gets returned always is set to "MSPMemberExists=OtherError" so my checkEmail method always returns false. Does anyone have any ideas as to why this isn't working?
Code:
    private boolean checkEmail(String email) {
        HttpsURLConnection connection = null;
        try {
            URL url = new URL("https://accountservices.passport.net/pp1450/memberexists.srf?x=" + new Date().getTime());
            connection = (HttpsURLConnection) url.openConnection();
            connection.setRequestMethod("GET");
            connection.setRequestProperty("Cookie", "MSPMemberExists=" + email);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            return connection.getHeaderField("Set-Cookie").contains("MSPMemberExists=" + email);
        }
    }