Quantcast
Channel: Adobe Community : Popular Discussions - AIR Development
Viewing all articles
Browse latest Browse all 24121

Socket and proxy

$
0
0

Hello,

 

I would like to make a http tunnel with Sockets in AS3, as in the example of adobe http://blogs.adobe.com/cantrell/archives/2006/07/a_proxy-savvy_s.html to go through a proxy, unfortunately it doesn't work.

Adobe class https://code.google.com/p/as3corelib/source/browse/trunk/src/com/adobe/net/proxies/RFC2817 Socket.as?r=55

 

Security.loadPolicyFile("xmlsocket://"+"ipServer"+":"+"port");

var socket:RFC2817Socket = new RFC2817Socket();
socket.setProxyInfo("proxyExample.com", "2121");
socket.connect("ipServer", "port");

 

it work on Adobe Air but not in Flash player on browsers

 

it work without proxy

 

it requests a policy file on the proxy connection, interruption myProxy: 2121 - prohibited transaction since http://www.mysite.com/file.swf

 

Thanks


Viewing all articles
Browse latest Browse all 24121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>