Anyone done any python scripting against the MH REST endpoints? I
tried a simple digest auth call and all I got back was the login page.
Hitting up wireshark to watch I saw the 302 redirect me, but I'm not
really familiar with digest auth so if someone else has run into this
before I'd love a pointer...
import urllib2
authinfo = urllib2.HTTPDigestAuthHandler()
authinfo.add_password( "Opencast Matterhorn","qa.opencastproject.org:8080",
"admin", "opencast")
opener = urllib2.build_opener(authinfo)
urllib2.install_opener(opener)
item =urllib2.urlopen('http://qa.opencastproject.org:8080/welcome.html')
item.readlines()
Chris
--
Christopher Brooks, BSc, MSc
ARIES Laboratory, University of Saskatchewan
Web: http://www.cs.usask.ca/~cab938
Phone: 1.306.966.1442
Mail: Advanced Research in Intelligent Educational Systems Laboratory
Department of Computer Science
University of Saskatchewan
176 Thorvaldson Building
110 Science Place
Saskatoon, SK
S7N 5C9
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________