|
@@ 174-180 (lines=7) @@
|
| 171 |
|
* |
| 172 |
|
* @return string The discovered settings |
| 173 |
|
*/ |
| 174 |
|
protected function tryTopLevelDomain($email, $password, $username) |
| 175 |
|
{ |
| 176 |
|
$topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
| 177 |
|
$url = 'https://www.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
| 178 |
|
|
| 179 |
|
return $this->doNTLMPost($url, $email, $password, $username); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
/** |
| 183 |
|
* Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 192-198 (lines=7) @@
|
| 189 |
|
* |
| 190 |
|
* @return string The discovered settings |
| 191 |
|
*/ |
| 192 |
|
protected function tryAutoDiscoverSubDomain($email, $password, $username) |
| 193 |
|
{ |
| 194 |
|
$topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
| 195 |
|
$url = 'https://autodiscover.' . $topLevelDomain . self::AUTODISCOVER_PATH; |
| 196 |
|
|
| 197 |
|
return $this->doNTLMPost($url, $email, $password, $username); |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
/** |
| 201 |
|
* Perform an unauthenticated HTTP GET in an attempt to get redirected |