@@ 230-236 (lines=7) @@ | ||
227 | * |
|
228 | * @return string The discovered settings |
|
229 | */ |
|
230 | protected function tryTopLevelDomain($email, $password, $username) |
|
231 | { |
|
232 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
233 | $url = 'https://www.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
234 | ||
235 | return $this->doNTLMPost($url, $email, $password, $username); |
|
236 | } |
|
237 | ||
238 | /** |
|
239 | * Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 248-254 (lines=7) @@ | ||
245 | * |
|
246 | * @return string The discovered settings |
|
247 | */ |
|
248 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
|
249 | { |
|
250 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
251 | $url = 'https://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
|
252 | ||
253 | return $this->doNTLMPost($url, $email, $password, $username); |
|
254 | } |
|
255 | ||
256 | /** |
|
257 | * Perform an unauthenticated HTTP GET in an attempt to get redirected |