# HTTP via Socket -\> Crossdomain Problem

**URL:** https://forum.kirupa.com/t/http-via-socket-crossdomain-problem/291236
**Category:** flash
**Created:** [June 26, 2009, 2:54pm UTC](https://forum.kirupa.com/t/http-via-socket-crossdomain-problem/291236 "2009-06-26T14:54:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthias\_omq](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matthias\_omq](https://forum.kirupa.com/u/matthias_omq)
#### Post date: [June 26, 2009, 2:54pm UTC](https://forum.kirupa.com/t/http-via-socket-crossdomain-problem/291236/1 "2009-06-26T14:54:02Z")

</div>

Hello,

We try to communicate with a webserver via a flash.net.socket. 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 🙂
