Custom HTTP Headers

22 views
Skip to first unread message

buzo

unread,
Sep 21, 2008, 6:01:10 PM9/21/08
to AS3 HttpClient
Hello:

I am trying to make an HTTP call from a flex app to a remote service
that (for authentication purposes) expects the presence of a custom
HTTP header like the following:

X-WSSE: UsernameToken Username="tom",
PasswordDigest="Vsr1yvZjImglo7kvcfY3gA==", Nonce="A11FF4575",
Created="2008-06-04T22:45:25Z"

After experimenting a bit, it seems that the class
mx.rpc.http.HTTPService does not send custom headers (I believe it has
something to do with a limitation of the Flash player). So I turned
to the "as3httpclientlib" library.

I am now test driving the app (HttpClientFlashApp.swf) hosted at
http://code.google.com/p/as3httpclientlib/downloads/list to send
requests to the server. What I've noticed is that the custom HTTP
header (X-WSSE above) is never sent.

Is this a bug or am I missing something?

I've successfully issued the same request using Poster (https://
addons.mozilla.org/en-US/firefox/addon/2691).

Thanks in advance

gabe

unread,
Sep 22, 2008, 12:17:40 PM9/22/08
to AS3 HttpClient
There was a bug in the test app, and it wasn't splitting the headers
from the TextArea correctly.

I fixed it and uploaded a new HttpClientApp.swf

On Sep 21, 6:01 pm, buzo <javier_sand...@yahoo.ca> wrote:
> Hello:
>
> I am trying to make an HTTP call from a flex app to a remote service
> that (for authentication purposes) expects the presence of a custom
> HTTP header like the following:
>
> X-WSSE: UsernameToken Username="tom",
> PasswordDigest="Vsr1yvZjImglo7kvcfY3gA==", Nonce="A11FF4575",
> Created="2008-06-04T22:45:25Z"
>
> After experimenting a bit, it seems that the class
> mx.rpc.http.HTTPService does not send custom headers (I believe it has
> something to do with a limitation of the Flash player).  So I turned
> to the "as3httpclientlib" library.
>
> I am now test driving the app (HttpClientFlashApp.swf) hosted athttp://code.google.com/p/as3httpclientlib/downloads/listto send
Reply all
Reply to author
Forward
0 new messages