This came up a few months back: <http://www.mail-archive.com/[email protected]/msg00639.html>
You'll want to read up on curl's exit codes, so you can test whether authentication succeeded. andrew On Jul 27, 2011, at 11:00 AM, J.Lance Wilkinson wrote: > I have a need to secure a COSIGN protected resource from a command line > (download a protected file). > > What do I need to do, in WGET or cURL, or whatever, to access a cosign > protected resource from a Unix/Linux command line? > > I would prefer the net effect to be non-interactive, at worst prompting > for the password or possibly the userid and password to be used in the > Cosign authentication. E.g., > > $ get_protected_resource.sh https://host/protected/path/resource user [pwd] > > Suggestions? Code already available? Where to start with Roll My Own? > -- > J.Lance Wilkinson ("Lance") InterNet: [email protected] > Systems Design Specialist - Lead Phone: (814) 865-4870 > Digital Library Technologies FAX: (814) 863-3560 > E3 Paterno Library > Penn State University > University Park, PA 16802 > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Cosign-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cosign-discuss > > !DSPAM:4e30284b104531493215846! > > > ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Cosign-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cosign-discuss
