HTTP via Socket -> Crossdomain Problem


We try to communicate with a webserver via a For that we implemented our own HTTPService class. We could not use the HTTPService class from Flash/ Flex, because we need the responseUrl from the response.

The problem is that the Flash Sandbox tries to load the crossdomain.xml with the request “<policy-file-request/>”, but the webserver can only handle HTTP requests.

Is there a possibility to load the crossdomain.xml with HTTP via the socket? Could we force the socket to be a HTTP socket? Or how could we use a HTTP low level socket class were we have access to the response header? This was possible in AS2 with HTTPStatusEvent -> but not possible in AS3.

thanks for help :slight_smile: