Many thanks! ~Aaron On Sun, Apr 20, 2008 at 7:18 AM, ben.clinkinbeard < [EMAIL PROTECTED]> wrote:
> Looks like you will need a meta-policy file: > > http://tech.groups.yahoo.com/group/flexcoders/messages/105793?threaded=1&m=e&var=1&tidx=1 > > HTH, > Ben > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Aaron > Miller" <[EMAIL PROTECTED]> wrote: > > > > I am trying to make a URLRequest that uses basic HTTP > authentication. The > > credentials are default and unknown to the user. > > > > I first tried using what the documentation referred to as the > > URLRequestDefaults class: > > > > > > http://livedocs.adobe.com/flex/3/html/help.html?content=url_requests_2.html > > > > But this class doesn't seem to exist.... > > > > So then I tried setting the header manually: > > > > var request:URLRequest = new URLRequest( > GlobalSettings.HARVEST_GATEWAY ); > > var authHeader:URLRequestHeader = new URLRequestHeader("Authorization", > > "Basic " + base64Encode(HARVEST_LOGIN + ":" + HARVEST_PASS)); > > request.requestHeaders.push(authHeader); > > > > But then I get a runtime error: > > > > ArgumentError: Error #2096: The HTTP request header Authorization > cannot be > > set via ActionScript. > > > > > > So... how do I set the authorization headers for a URLRequest? > > > > Thanks for any help! > > ~Aaron > > > > > -- Aaron Miller Chief Technology Officer Open Base Interactive, LLC. [EMAIL PROTECTED] http://www.openbaseinteractive.com

