Even after following this I am still having some issues getting this
to work. I have the following in my crossdomain.xml file
<allow-access-from domain="*" to-ports="*" />
but still get the security error.
Just some background I am deploying this on JBoss, the REST services I
am asking are located within the same instance of JBoss. I have this
file deployed to the life cycle services war file (in the config
directory) and had tried to deploy it to jbossweb.deployer/Root.war
but neither had any impact on the outcome.
This is all new to me so any help is appreciated.
On May 19, 8:11 pm, Gabe <
gabri...@gmail.com> wrote:
> Oh didn't get a chance to check that out. Looks awesome!
>
> Another alternative is to use an HTTP proxy (was patched awhile back
> to take a proxy URI in the constructor):
>
> public function HttpClient(proxy:URI = null, timeout:int = 60000)
>
> I wonder if someone could setup a google app engine project or
> something that acts as a http proxy + socket policy server.. might be
> a cool project
>
> On Tue, May 19, 2009 at 4:41 PM, Phil Douglas <
ric...@gmail.com> wrote:
> > Gabe did you get a chance to look at my proxy extension the provides a
> > workaround for this?
>
> >
http://code.google.com/p/as3httpproxyclientlib/
>
> > Cheers
>
> > Phil
>
> > On Wed, May 20, 2009 at 7:54 AM, gabe <
gabri...@gmail.com> wrote:
>
> >> You'll need to run a socket policy server on that domain...
>
> >> See
> >>
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files....
>
> >> I feel your pain.
>
> >> On May 19, 2:44 pm, Prem <
godsmustbcr...@gmail.com> wrote:
> >> > I am trying to do a simple header get request with authentication with
> >> > HTTPClient
>
> >> > var client:HttpClient = new HttpClient();
>
> >> > var uri:URI = new URI("
http://www.myurl.com/?xy="+x+","+y
> >> > +"&fields=s"+PermitNum?+",s1");
> >> > var request:HttpRequest? = new Get();
> >> > var creds:String="username:password";
> >> > var encoder:Base64Encoder? = new Base64Encoder?();
> >> > encoder.encode(creds);
> >> > var encodedCreds:String=encoder.toString();
> >> > request.addHeader("Authorization", "Basic " + encodedCreds);
> >> > client.request(uri, request);
>
> >> > and I get this error
>
> >> > Connection to
myurl.com:80 halted - not permitted
> >> > fromhttp://
www.myurl.com/myproj/bin-debug/SMS2.swfError:Request for
> >> > resource at xmlsocket://www.myurl.com:80byrequestor
> >> > fromhttp://
www.myurl.com/myproj/bin-debug/SMS2.swfisdenied due to lack