socket policy flash help

paul paul at subsignal.org
Sat Aug 1 05:28:32 EDT 2009


NighterNet schrieb:
> I need help on the policy to able to let access to user to the server
> once the policy access is finish. I been trying to find a good
> example, but I got no luck. Using python version 3.1.
> 
> Here the code I tested but it not working.
> 
> if str(buff) == str("b\'<policy-file-request/>\\x00\'"):
> 				print ('policy FOUND >>> sending...')
> 				rawinput = str('<?xml version=\"1.0\"?><cross-domain-policy><allow-
> access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>')
> 				print (rawinput)
> 				b = bytes ( ord(c) for c in rawinput)
> 				self.sockfd.send(b);
And the error is? Doesn't Flash use http as transport?

cheers
  Paul




More information about the Python-list mailing list