socket policy flash help
NighterNet
darkneter at gmail.com
Fri Jul 31 23:14:13 EDT 2009
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);
More information about the Python-list
mailing list