Re: [flexcoders] Re: HTTP Methods
On Mon, Feb 25, 2008 at 5:03 PM, Troy Gilbert [EMAIL PROTECTED] wrote: Hum... so it does work with the normal HTTPService without using a proxy? Nope, not at all. If you want the full HTTP verb set you've got to use a proxy. Flash Player only speaks GET and POST, due to legacy issues where browsers used to only speak GET and POST (and some still do as far as I know) and the Flash Player uses the browser's network stack. So, without a proxy, it's only GET and POST. With a proxy, it's whatever HTTP supports. Ok, thanks! I just wanted to test them with the restful webservices. I have decided to use BlazeDS. Thanks for the replies. Fidel.
Re: [flexcoders] Re: HTTP Methods
Hum... so it does work with the normal HTTPService without using a proxy? Nope, not at all. If you want the full HTTP verb set you've got to use a proxy. Flash Player only speaks GET and POST, due to legacy issues where browsers used to only speak GET and POST (and some still do as far as I know) and the Flash Player uses the browser's network stack. So, without a proxy, it's only GET and POST. With a proxy, it's whatever HTTP supports. Troy.
Re: [flexcoders] Re: HTTP Methods
mx:HTTPService id=LoginForm method=GET useProxy=true On Mon, Feb 25, 2008 at 7:03 PM, Troy Gilbert [EMAIL PROTECTED] wrote: Hum... so it does work with the normal HTTPService without using a proxy? Nope, not at all. If you want the full HTTP verb set you've got to use a proxy. Flash Player only speaks GET and POST, due to legacy issues where browsers used to only speak GET and POST (and some still do as far as I know) and the Flash Player uses the browser's network stack. So, without a proxy, it's only GET and POST. With a proxy, it's whatever HTTP supports. Troy. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
[flexcoders] Re: HTTP Methods
Look up URLRequestMethod constants. Just use them to define the http method - no need for proxy of any kind. (the server you are making request to should understand these methods, of course) --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello folks, I have come across this article http://blogs.adobe.com/kiwi/2006/07/making_http_calls_in_actionscr.html, where it says that the HTTPService supports the basic HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE). Does it mean when using a proxy? Where can I find an example? Thanks in advance, Fidel.
Re: [flexcoders] Re: HTTP Methods
On Sun, Feb 24, 2008 at 4:36 PM, andrii_olefirenko [EMAIL PROTECTED] wrote: Look up URLRequestMethod constants. Just use them to define the http method - no need for proxy of any kind. (the server you are making request to should understand these methods, of course) Hi Andrii, Before asking this question, I have checked URLRequestMethod, and I only see POST and GET available. I need to use PUT and DELETE. Basically, I am trying to communicate my Flex app with a restfull webservice, which uses POST, GET, PUT and DELETE. Has anyone tried this before? How have you done this? Thanks in advance, Fidel.
[flexcoders] Re: HTTP Methods
Hmm, yeah, you are right, the doc actually tells that there should be whole branch of constants... Try to put string values directly instead of constants: PUT, DELETE instead of URLRequestMethod.PUT and URLRequestMethod.DELETE. If this won't do magic, then i see only solution is to use socket connections... Andrii Olefirenko --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hi Andrii, Before asking this question, I have checked URLRequestMethod, and I only see POST and GET available. I need to use PUT and DELETE. Basically, I am trying to communicate my Flex app with a restfull webservice, which uses POST, GET, PUT and DELETE. Has anyone tried this before? How have you done this? Thanks in advance, Fidel.
Re: [flexcoders] Re: HTTP Methods
You have to use mx:HTTPService On Sun, Feb 24, 2008 at 6:30 PM, Fidel Viegas [EMAIL PROTECTED] wrote: On Sun, Feb 24, 2008 at 4:36 PM, andrii_olefirenko [EMAIL PROTECTED]andriyo%40gmail.com wrote: Look up URLRequestMethod constants. Just use them to define the http method - no need for proxy of any kind. (the server you are making request to should understand these methods, of course) Hi Andrii, Before asking this question, I have checked URLRequestMethod, and I only see POST and GET available. I need to use PUT and DELETE. Basically, I am trying to communicate my Flex app with a restfull webservice, which uses POST, GET, PUT and DELETE. Has anyone tried this before? How have you done this? Thanks in advance, Fidel. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Re: [flexcoders] Re: HTTP Methods
Nope Give a look on the HTTPService Properties mx:HTTPService id=LoginForm method=GET ... mx:HTTPService id=LoginForm method=DELETE ... mx:HTTPService id=LoginForm method=POST... On Sun, Feb 24, 2008 at 6:48 PM, andrii_olefirenko [EMAIL PROTECTED] wrote: Hmm, yeah, you are right, the doc actually tells that there should be whole branch of constants... Try to put string values directly instead of constants: PUT, DELETE instead of URLRequestMethod.PUT and URLRequestMethod.DELETE. If this won't do magic, then i see only solution is to use socket connections... Andrii Olefirenko --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hi Andrii, Before asking this question, I have checked URLRequestMethod, and I only see POST and GET available. I need to use PUT and DELETE. Basically, I am trying to communicate my Flex app with a restfull webservice, which uses POST, GET, PUT and DELETE. Has anyone tried this before? How have you done this? Thanks in advance, Fidel. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Re: [flexcoders] Re: HTTP Methods
On Sun, Feb 24, 2008 at 5:54 PM, Omar Fouad [EMAIL PROTECTED] wrote: Nope Give a look on the HTTPService Properties mx:HTTPService id=LoginForm method=GET ... mx:HTTPService id=LoginForm method=DELETE ... mx:HTTPService id=LoginForm method=POST... Hum... so it does work with the normal HTTPService without using a proxy? Ok, I am going to try that out. Thanks! Fidel.