Created
February 3, 2015 21:48
-
-
Save toodooleedoo/23b6adda42882e358626 to your computer and use it in GitHub Desktop.
Login through Siteminder to AEM and report landing page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --dump-header headers.txt --silent 'https://<<<CUT>>>/siteminderagent/forms/login.fcc' -H 'Host: <<<CUT>>>' -d "target=http%3A%2F%2F<<<CUT>>>%2Fpublish%2F" -d "USER=soukene" -d "PASSWORD=<<CUT>>>" -o /dev/null | |
SESSION=`grep SMSESSION headers.txt |sed -e 's/.*SMSESSION=//g;s/;.*//g;'` | |
curl --silent -k -H "Cookie: SMSESSION=${SESSION}" "https://<<<CUT>>>/publish" -L -w 'Last URL was: %{url_effective}\n' -o /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment