Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender
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.

Adbot
ADBOT LOVES YOU

  • Locked thread