@@ 184-190 (lines=7) @@ | ||
181 | * |
|
182 | * @return string The discovered settings |
|
183 | */ |
|
184 | protected function tryTopLevelDomain($email, $password, $username) |
|
185 | { |
|
186 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
187 | $url = 'https://www.' . $topLevelDomain . $this->autodiscoverPath; |
|
188 | ||
189 | return $this->doNTLMPost($url, $email, $password, $username); |
|
190 | } |
|
191 | ||
192 | /** |
|
193 | * Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 202-208 (lines=7) @@ | ||
199 | * |
|
200 | * @return string The discovered settings |
|
201 | */ |
|
202 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
|
203 | { |
|
204 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
205 | $url = 'https://autodiscover.' . $topLevelDomain . $this->autodiscoverPath; |
|
206 | ||
207 | return $this->doNTLMPost($url, $email, $password, $username); |
|
208 | } |
|
209 | ||
210 | /** |
|
211 | * Perform an unauthenticated HTTP GET in an attempt to get redirected |