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