flex3 - flex HTTP Basic authentication problem -


i'm trying xml file requires http basic authentication :

private function authandsend(service:httpservice):void             {                 var enc:base64encoder = new base64encoder();                  enc.insertnewlines=false;                  enc.encode("login:pass");                  service.headers["authorization"] = "basic " + enc.tostring();                  service.headers["accept"] = "application/xml";                                service.contenttype="application/x-www-form-urlencoded";                 service.method = httprequestmessage.get_method;                  service.resultformat = "xml";                  service.send();               } 

in air works well. in flex(3.5,4.1) raises pupup login window(standard web browser login form on basic http authentication). how avoid this?

http headers, including authorization, blocked default being sent flash player. need allow authorization header in crossdomain.xml file.

http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -