@@ 304-310 (lines=7) @@ | ||
301 | * |
|
302 | * @return string The discovered settings |
|
303 | */ |
|
304 | protected function tryTopLevelDomain($email, $password, $username) |
|
305 | { |
|
306 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
307 | $url = 'https://www.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
308 | ||
309 | return $this->doNTLMPost($url, $email, $password, $username); |
|
310 | } |
|
311 | ||
312 | /** |
|
313 | * Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 322-328 (lines=7) @@ | ||
319 | * |
|
320 | * @return string The discovered settings |
|
321 | */ |
|
322 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
|
323 | { |
|
324 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
325 | $url = 'https://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
326 | ||
327 | return $this->doNTLMPost($url, $email, $password, $username); |
|
328 | } |
|
329 | ||
330 | /** |
|
331 | * Perform an unauthenticated HTTP GET in an attempt to get redirected |