@@ 189-195 (lines=7) @@ | ||
186 | * |
|
187 | * @return string The discovered settings |
|
188 | */ |
|
189 | protected function tryTopLevelDomain($email, $password, $username) |
|
190 | { |
|
191 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
192 | $url = 'https://www.'.$topLevelDomain.$this->autodiscoverPath; |
|
193 | ||
194 | return $this->doNTLMPost($url, $email, $password, $username); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 207-213 (lines=7) @@ | ||
204 | * |
|
205 | * @return string The discovered settings |
|
206 | */ |
|
207 | protected function tryAutoDiscoverSubDomain($email, $password, $username) |
|
208 | { |
|
209 | $topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
|
210 | $url = 'https://autodiscover.'.$topLevelDomain.$this->autodiscoverPath; |
|
211 | ||
212 | return $this->doNTLMPost($url, $email, $password, $username); |
|
213 | } |
|
214 | ||
215 | /** |
|
216 | * Perform an unauthenticated HTTP GET in an attempt to get redirected |