{"action":"created","issue":{"url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/18","labels_url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/18/comments","events_url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/18/events","html_url":"https://github.com/yupswing/akifox-asynchttp/issues/18","id":98990914,"number":18,"title":"sync request not working?","user":{"login":"ramsestom","id":636758,"avatar_url":"https://avatars.githubusercontent.com/u/636758?v=3","gravatar_id":"","url":"https://api.github.com/users/ramsestom","html_url":"https://github.com/ramsestom","followers_url":"https://api.github.com/users/ramsestom/followers","following_url":"https://api.github.com/users/ramsestom/following{/other_user}","gists_url":"https://api.github.com/users/ramsestom/gists{/gist_id}","starred_url":"https://api.github.com/users/ramsestom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramsestom/subscriptions","organizations_url":"https://api.github.com/users/ramsestom/orgs","repos_url":"https://api.github.com/users/ramsestom/repos","events_url":"https://api.github.com/users/ramsestom/events{/privacy}","received_events_url":"https://api.github.com/users/ramsestom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T14:59:33Z","updated_at":"2015-08-15T13:29:13Z","closed_at":null,"body":"Hi\r\n  The async:false option do not seem to work (or I didn't understand how to make it work maybe).\r\n\r\nIf I do:\r\n\r\nvar answer:String = \"\";\r\n\r\nvar request = new HttpRequest( {\r\n\turl : \"http://www.google.com\",\r\n\tmethod : HttpMethod.GET,\r\n\theaders : new HttpHeaders({\r\n\t\t'Cache-Control':'no-cache'\r\n\t}),\r\n\ttimeout : 10,\r\n\tasync : false,\r\n\thttp11 : true,\r\n\tcallback : function(response:HttpResponse):Void \r\n\t{\r\n\t\tif (response.isOK) {\r\n\t\t  answer = response.content;\r\n\t\t  trace(\"Callback answer: \" + answer );\r\n\t\t}\r\n\t\telse {\r\n\t\t  trace(\"Error\");\t\r\n\t\t  return null;\r\n\t\t}\r\n\t}  \r\n});\r\n\r\nrequest.send();\r\n\r\ntrace(\"Answer: \" + answer );\r\n\r\n\r\nI have:\r\n\r\nAnswer:\r\nCallback answer: [code from the www.google.com page]\r\n\r\nSo how can I make sync request so that my code wait for the response to continue? \r\n"},"comment":{"url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/comments/131374697","html_url":"https://github.com/yupswing/akifox-asynchttp/issues/18#issuecomment-131374697","issue_url":"https://api.github.com/repos/yupswing/akifox-asynchttp/issues/18","id":131374697,"user":{"login":"yupswing","id":10497150,"avatar_url":"https://avatars.githubusercontent.com/u/10497150?v=3","gravatar_id":"","url":"https://api.github.com/users/yupswing","html_url":"https://github.com/yupswing","followers_url":"https://api.github.com/users/yupswing/followers","following_url":"https://api.github.com/users/yupswing/following{/other_user}","gists_url":"https://api.github.com/users/yupswing/gists{/gist_id}","starred_url":"https://api.github.com/users/yupswing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yupswing/subscriptions","organizations_url":"https://api.github.com/users/yupswing/orgs","repos_url":"https://api.github.com/users/yupswing/repos","events_url":"https://api.github.com/users/yupswing/events{/privacy}","received_events_url":"https://api.github.com/users/yupswing/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T13:29:13Z","updated_at":"2015-08-15T13:29:13Z","body":"It works perfectly on CPP (just tested). It is supported in JS as well.\r\nIt is not supported in Flash. Are you using flash target?"}}