Skip to content

Instantly share code, notes, and snippets.

@tom-code
Last active January 29, 2024 06:22
Show Gist options
  • Save tom-code/18f49a5b56ca53a21c012d2035dda650 to your computer and use it in GitHub Desktop.
Save tom-code/18f49a5b56ca53a21c012d2035dda650 to your computer and use it in GitHub Desktop.
activesync autodiscover
curl --basic -X "POST" -u XXX@YYY -v https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml -H "Content-Type: text/xml" -d @a.txt
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/requestschema/2006">
<Request>
<EMailAddress>XXXXXXXXX</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006</AcceptableResponseSchema>
</Request>
</Autodiscover>
gives:
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
<Culture>en:us</Culture>
<User>
<DisplayName>XXXXXXXX</DisplayName>
<EMailAddress>XXXXXXXXXX</EMailAddress>
</User>
<Action>
<Settings>
<Server>
<Type>MobileSync</Type>
<Url>https://outlook.office365.com/Microsoft-Server-ActiveSync</Url>
<Name>https://outlook.office365.com/Microsoft-Server-ActiveSync</Name>
</Server>
</Settings>
</Action>
</Response>
curl --http1.1 --basic -X "OPTIONS" -u XXXX:YYYY -v https://outlook.office365.com/Microsoft-Server-ActiveSync -H "Content-Type: application/vnd.ms-sync.wbxml" -H "MS-ASProtocolVersion: 14.0" --output -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment