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

Justin Mclean commented on FLEX-33222:
--------------------------------------

Unable to reproduce. 

This code will send a POST request not a GET request.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx" 
creationComplete="init(event)">
        <fx:Script>
                <![CDATA[
                        import mx.events.FlexEvent;
                        
                        protected function init(event:FlexEvent):void
                        {
                                request.send();
                        }
                        
                ]]>
        </fx:Script>

        <fx:Declarations>
                <s:HTTPService id="request" contentType="application/xml" 
url="http://www.google.com"; method="POST" />
        </fx:Declarations>
</s:Application>

The only code I could find in the SDK changes a GET to a POST not the other way 
about (in AbstractOperation.as).

        if (ctype == CONTENT_TYPE_XML && message.method == 
HTTPRequestMessage.GET_METHOD)
            message.method = HTTPRequestMessage.POST_METHOD;

Can you provide same code that shows this issue?

                
> All HTTP GET requests are stripped of headers.
> ----------------------------------------------
>
>                 Key: FLEX-33222
>                 URL: https://issues.apache.org/jira/browse/FLEX-33222
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: HTTPService
>    Affects Versions: Adobe Flex SDK 4.6 (Release)
>         Environment: iOS, Android and, Windows
>            Reporter: Andre Rezende
>            Priority: Critical
>              Labels: Android, GET, HTTPService,, POST,, iOS,
>
> All HTTP GET requests that have content type other than 
> "application/x-www-form-urlencoded" are turned into POST requests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to