Hi Everyone
 
I am trying to configure my Air app to authenticate to a Capture Agent
using Adobe Air Javascript plugins. The authentication headers I have
tried so fare are not working. Can somebody nudge me in the right
direction? 
 
I need to have the Javascript equivalent of this Curl based line:
 
curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Requested-Auth:
Digest"));
 
So far this is the format of the Javascript header setter (which does
not work with those parameters):
 
var hash = $.base64.encode("admin:opencast");
request.requestHeaders = [new air.URLRequestHeader('X-REQUESTED-AUTH',
'Digest auth=' + hash)];
 
How can i properly set the auth parameters and headers?
 
Thanks
 
 
--
Lovemore Nalube
OLE Developer (Vula)
University of Cape Town
http://www.cet.uct.ac.za/LovemoreN



 

###
UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer
published on our website at
http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from
+27 21 650 9111. This e-mail is intended only for the person(s) to whom
it is addressed. If the e-mail has reached you in error, please notify
the author. If you are not the intended recipient of the e-mail you may
not use, disclose, copy, redirect or print the content. If this e-mail
is not related to the business of UCT it is sent by the sender in the
sender's individual capacity.

###
 
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to