HTTP / Autodiscover
Header, Weiterleitungen und Autodiscover testen.
HTTP-Header
Ruft nur die Antwort-Header einer URL ab, ohne den Inhalt zu laden.
Webmail
PowerShell (Windows)
Invoke-WebRequest Bordmittel
(Invoke-WebRequest -Method Head -Uri "https://webmail.example.com" -UseBasicParsing).Headers curl Bordmittel
curl.exe -sSI "https://webmail.example.com" Unix-Shell (bash)
curl Bordmittel
curl -sSI "https://webmail.example.com" wget Zusatztool
wget -S --spider "https://webmail.example.com" Autodiscover
PowerShell (Windows)
Invoke-WebRequest Bordmittel
(Invoke-WebRequest -Method Head -Uri "https://autodiscover.example.com/autodiscover/autodiscover.xml" -UseBasicParsing).Headers curl Bordmittel
curl.exe -sSI "https://autodiscover.example.com/autodiscover/autodiscover.xml" Unix-Shell (bash)
curl Bordmittel
curl -sSI "https://autodiscover.example.com/autodiscover/autodiscover.xml" wget Zusatztool
wget -S --spider "https://autodiscover.example.com/autodiscover/autodiscover.xml" Weiterleitungen folgen
Verfolgt die Redirect-Kette einer URL Schritt für Schritt.
PowerShell (Windows)
Invoke-WebRequest Bordmittel
$u = "https://mail.example.com"
do {
$r = Invoke-WebRequest -Uri $u -Method Head -MaximumRedirection 0 -SkipHttpErrorCheck -UseBasicParsing
"{0} -> {1}" -f [int]$r.StatusCode, $r.Headers.Location
$u = $r.Headers.Location
} while ($u) curl Bordmittel
curl.exe -sSIL "https://mail.example.com" Unix-Shell (bash)
curl Bordmittel
curl -sSIL "https://mail.example.com" | grep -Ei "^(HTTP/|location:)" wget Zusatztool
wget --max-redirect=10 -S --spider "https://mail.example.com" 2>&1 | grep -Ei "HTTP/|Location:" -SkipHttpErrorCheck benötigt PowerShell 7 oder neuer.
Autodiscover testen
Schickt eine Autodiscover-Anfrage an autodiscover.<Domain> (Exchange / Microsoft 365).
- E-Mail-Adresse
-
user@example.comIm Generator ändern →
PowerShell (Windows)
Invoke-RestMethod Bordmittel
$body = @'
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<EMailAddress>user@example.com</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
'@
Invoke-RestMethod -Method Post -ContentType "text/xml" -Credential (Get-Credential user@example.com) `
-Uri "https://autodiscover.example.com/autodiscover/autodiscover.xml" -Body $body curl Bordmittel
curl.exe -sS -u user@example.com -H "Content-Type: text/xml" -d "@ad.xml" "https://autodiscover.example.com/autodiscover/autodiscover.xml" Unix-Shell (bash)
curl Bordmittel
cat > ad.xml <<'EOF'
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<EMailAddress>user@example.com</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
EOF
curl -sS -u user@example.com -H "Content-Type: text/xml" \
-d @ad.xml "https://autodiscover.example.com/autodiscover/autodiscover.xml" wget Zusatztool
wget -qO- --post-file=ad.xml --header="Content-Type: text/xml" --user=user@example.com --ask-password "https://autodiscover.example.com/autodiscover/autodiscover.xml" Get-Credential fragt das Passwort sicher ab. Basic Authentication muss am Ziel erlaubt sein.