You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/25 07:26:17 UTC

[jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

     [ https://issues.apache.org/jira/browse/FLEX-33222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean resolved FLEX-33222.
----------------------------------

    Resolution: Cannot Reproduce

Can't reproduce and no sample code provided. Please ask to reopen if this issue occurs again and you can provide sample code.
                
> 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

Re: [jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Some sort of this.

Are you sure?

"All HTTP GET requests are stripped of headers." seems fairly clear to me and the opposite to what's in that code.

Thanks,
Justin

Re: [jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

Posted by Igor Costa <ig...@gmail.com>.
Justin

Some sort of this.

<s:HTTPService id="myRestful"/>


myRestful.method = URLRequestMethod.DELETE;
myRestful.url = 'http://URL_OF_SERVICE;
myRestful.headers =["application/json","X-HTTP-Method-Override","DELETE"];
// tried with those as well { Accept:"application/json",
"X-HTTP-Method-Override":"", "DELETE":""};
myRestful.contentType = "application/json";
myRestful.request = {some data_here};
myRestful.send();

Basically from what I understand he wants to manage a DELETE/PUT request to
the restful service.


----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org


On Thu, Dec 5, 2013 at 7:11 PM, Justin Mclean <ju...@classsoftware.com>wrote:

> Hi,
>
> > Problem is, if you're trying to use PUT/DELETE, OPTIONS in the
> HTTPService
> > headers, all requests goes as GET headers.
>
> Think that a different (and known) issue - but put up some sample code to
> demonstrate and I'm sure someone will look into it.
>
> Thanks,
> Justin

Re: [jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Problem is, if you're trying to use PUT/DELETE, OPTIONS in the HTTPService
> headers, all requests goes as GET headers.

Think that a different (and known) issue - but put up some sample code to demonstrate and I'm sure someone will look into it.

Thanks,
Justin

Re: [jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

Posted by Igor Costa <ig...@gmail.com>.
I accidently hit the send button and forgot to mention that this isn't a
SDK issue, it's a limitation of Flash Player.

Just supporting GET/POST.

----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org


On Thu, Dec 5, 2013 at 7:06 PM, Igor Costa <ig...@gmail.com> wrote:

> Actually it's happening.
>
>
> Problem is, if you're trying to use PUT/DELETE, OPTIONS in the HTTPService
> headers, all requests goes as GET headers.
>
>
> I reproduced here.
>
> ----------------------------
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>
>
> On Thu, Apr 25, 2013 at 2:26 AM, Justin Mclean (JIRA) <ji...@apache.org>wrote:
>
>>
>>      [
>> https://issues.apache.org/jira/browse/FLEX-33222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Justin Mclean resolved FLEX-33222.
>> ----------------------------------
>>
>>     Resolution: Cannot Reproduce
>>
>> Can't reproduce and no sample code provided. Please ask to reopen if this
>> issue occurs again and you can provide sample code.
>>
>> > 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
>>
>
>

Re: [jira] [Resolved] (FLEX-33222) All HTTP GET requests are stripped of headers.

Posted by Igor Costa <ig...@gmail.com>.
Actually it's happening.


Problem is, if you're trying to use PUT/DELETE, OPTIONS in the HTTPService
headers, all requests goes as GET headers.


I reproduced here.

----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org


On Thu, Apr 25, 2013 at 2:26 AM, Justin Mclean (JIRA) <ji...@apache.org>wrote:

>
>      [
> https://issues.apache.org/jira/browse/FLEX-33222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Justin Mclean resolved FLEX-33222.
> ----------------------------------
>
>     Resolution: Cannot Reproduce
>
> Can't reproduce and no sample code provided. Please ask to reopen if this
> issue occurs again and you can provide sample code.
>
> > 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
>