[
https://issues.apache.org/jira/browse/FLEX-34123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916528#comment-13916528
]
Maurice Amsellem commented on FLEX-34123:
-----------------------------------------
Alex, is this the documenation you are referring to?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()
It says:
"For content running in Adobe AIR, when using the navigateToURL() function, the
runtime treats a URLRequest that uses the POST method (one that has its method
property set to URLRequestMethod.POST) as using the GET method."
> in air application flash.net.navigateToUrl POST method gets converted to GET
> -----------------------------------------------------------------------------
>
> Key: FLEX-34123
> URL: https://issues.apache.org/jira/browse/FLEX-34123
> Project: Apache Flex
> Issue Type: Bug
> Reporter: amit
>
> Hi Team,
> here is the code base
> private function onPreviewResponse(html:String):void{
> var serverPath:String = "http://anywebsite/preview";
> var url:URLRequest = new URLRequest(serverPath);
> var params:URLVariables = new URLVariables();
> /// very huge html String
> params.previewDisclosure = html;
> url.data = params url.method=URLRequestMethod.POST;
> navigateToURL(url, "_blank");
> }
> in air even if i am using url.method=URLRequestMethod.POST;
> request gets converted to GET as i have huge html string and can not build
> two different verion i.e for air and flashplayer.
> Please let me know the resolution or make available the code base of
> flash.net package
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)