|
If you use curl with the cookiejar option enabled, it can store the session cookies for you. You'd need to write a simple script (like in python or ruby, or even a batch file since this is so simple) to use it. Something like 1) Use curl to attempt to retrieve the sharepoint URL. Enable the cookiejar option, and the option to follow redirects. This should return you the RSA login page. curl --cookie-jar mycookies --location https://mysharepoint.site.com/ 2) Submit a POST request via curl to the RSA login page with your credentials, emulating you POSTing the webform. Use the same cookiejar, and follow redirects again. This should return you to the sharepoint site. curl --cookie-jar mycookies --location -F username=myloginname -F password=mypassword https://rsa.login.com/ 3) By now all the appropriate cookies should be set up in the cookie jar. Use curl to get the URL you want from the sharepoint site. curl --cookie-jar mycookies --location https://mysharepoint.site.com/actualurl/I/want Some website scraper tools may be able to do this for you, but the above is pretty simple and should work.
|
# ¿ Jun 12, 2014 07:08 |
|
|
# ¿ May 22, 2024 16:35 |