flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34123) in air application flash.net.navigateToUrl POST method gets converted to GET
Date Fri, 28 Feb 2014 17:32:19 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916039#comment-13916039
] 

Alex Harui commented on FLEX-34123:
-----------------------------------

I'm not an expert on this stuff, but I thought navigateToURL is like setting window.location
in JS.  It is requesting a web page and is going to use GET.  The documentation even says
that navigateToURL will convert POST to GET

I think people who want to use POST generally use URLLoader.

> 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)

Mime
View raw message