>From the archives:

"Hi Brian,

The Flash player only currently supports GET and POST requests (and
converts any POST request with a zero length body or any unrecognized
request method to a GET). PUT and DELETE are not supported.

For HTTPService you can get around this limitation if your HTTPService
has useProxy="true". In this case a request to build and send a proxied
PUT/DELETE/OPTIONS/etc. request is sent to FDS and the server builds and
sends the actual HTTP request and returns the response to the player.
The proxy also handles fault responses in the 500 range and returns them
to the player in a form that HTTPService can process usefully (the
player doesn't handle responses in the 500 range). We have Pete Farland
to thank for all that :)

I'll log a doc bug to clarify that the extended set of methods are only
supported when using the proxy.

If you're not using the proxy, HTTPService uses a flash.net.URLLoader to
make the request directly so you're limited to what the player supports.

HTH,
Seth"

 

Tracy

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ronnlixx
Sent: Tuesday, September 04, 2007 12:27 PM
To: [email protected]
Subject: [flexcoders] HTTPService.method = "PUT" sends a GET

 

Is this some kind of bug? 
When trying to send a put request with HTTPService, it sends out a get
request instead.

var service:HTTPService = new HTTPService();
service.url = "my/service/2.xml";
service.useProxy = false;
service.resultFormat = "text";
service.method = "PUT";
service.send(params);

 

Reply via email to