Thanks - I will.

--- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAIL PROTECTED]> wrote:
>
> Actually it didn't. We were running into problems getting it
working, so we
> just ended up using php to handle the authentication and proxy the data.
> This is probably better security anyways since SWFs can be
decompiled, but
> maybe you can get it to work if you play around with it more.
> 
> Let me know how it turns out since I am curious to know how it works.
> 
> Best Regards,
> ~Aaron
> 
> On Fri, May 9, 2008 at 1:24 PM, rydellfinn <[EMAIL PROTECTED]> wrote:
> 
> >   Aaron -
> >
> > Did this end up working for you? Using the same technique to add the
> > authorization header, I have a meta-policy file, and I get an IO
Error.
> >
> > Thanks!
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
"Aaron
> > Miller" <amiller@> wrote:
> > >
> > > Many thanks!
> > > ~Aaron
> > >
> > > On Sun, Apr 20, 2008 at 7:18 AM, ben.clinkinbeard <
> > > ben.clinkinbeard@> 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 flexcoders@yahoogroups.com
<flexcoders%40yahoogroups.com><flexcoders%
> > 40yahoogroups.com>,
> > "Aaron
> > > > Miller" <amiller@> 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.
> > > amiller@
> > > http://www.openbaseinteractive.com
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Aaron Miller
> Chief Technology Officer
> Open Base Interactive, LLC.
> [EMAIL PROTECTED]
> http://www.openbaseinteractive.com
>


Reply via email to