gabriel / as3httpclient

HTTP Client for AS3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https timeout error

hishankjain opened this issue · comments

Hi,

I am trying to to send https post request(port 81) to my server from main swf file(loaded from port 99).

Code in my main.swf:
uri = new URI("https://x.x.x.x/myservice.aspx");
uri.scheme = "https"
uri.port = "81";
client.postFormData(uri,variables);

It traces:
Warning: Found secure='true' in policy file from xmlsocket://x.x.x.x:843, but host x.x.x.x does not appear to refer to the local machine. This may be insecure. See http://www.adobe.com/go/strict_policy_files for details.

OK: Policy file accepted: xmlsocket://x.x.x.x:843

OK: Request for resource at xmlsocket://x.x.x.x:81 by requestor from https://x.x.x.x:99/webdev/allfiles/main.swf is permitted due to policy file at xmlsocket://x.x.x.x:843

Request URI: https://x.x.x.x:81/webdev/myservice.aspx (POST)

But I dont get any response from the server & I receive following error after some time:-

[ErrorEvent type="httpTimeoutError" bubbles=false cancelable=false eventPhase=2 text="Timeout"]

Error: Error #2002: Operation attempted on invalid socket.
at flash.net::Socket/flush()
at com.hurlant.crypto.tls::TLSSocket/close()
at com.org.httpclient::HttpSocket/close()
at com.org.httpclient::HttpSocket/onTimeout()
at com.org.httpclient::HttpTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Things I have done :

  1. Returned a policy file at socket 843 on server.
  2. Crossdomain file at root of my server.
  3. Bind server port 81,443 & 99 to https request.
  4. created rule to allow all TCP/UDP connection over all ports.

Am I missing anything.Plz help.

Thanks,
Hishankjain

Hi, I have similar problem.

Warning: Timeout on xmlsocket://xxx.xxx.net:843 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.

*** Security Sandbox Violation ***
Connection to xxx.xxx.net:443 halted - not permitted from https://xxx.xxx.net/xxx/xxx/xxx.swf
Error: Request for resource at xmlsocket://xxx.xxx.net:443 by requestor from https://xxx.xxx.net/xxx/xxx.swf is denied due to lack of policy file permissions.