I just did a quick test, 'setRemoteCredentials' is implemented as a
flex.messaging.messages.CommandMessage and not as a HTTP Header.
Thanks for the link. I see someone else was able to extend mx.rpc.AsyncRequest
and mx.rpc.remoting.mxml.RemoteObject. This sounds exactly like what I need. If
anyone has sample code for this it would be great !
--- In flexcoders@yahoogroups.com, "valdhor" wrote:
>
> You could use the setRemoteCredentials method of the RemoteObject to send
> username and password as a header item.
>
> If not, check out the replies at
> http://stackoverflow.com/questions/81548/how-to-set-an-http-header-while-using-a-flex-remoteobject-method
>
> --- In flexcoders@yahoogroups.com, "mores" wrote:
> >
> > Is there anyway to attach a HTTP Header to a
> > flex.messaging.messages.RemotingMessage such that my
> > flex.messaging.endpoints.AMFEndpoint will be able access it ?
> >
> > I have a server that is protected/secured and the only way to access the
> > resources is by attaching a token to the HTTP Header.
> >
>