3

Need to find a way to send a delete method from Flash Player (Flex). Currently it's not done by default (except for from AIR), but I am sure someone has augmented the URLRequestHeader to get it to work properly.

I've tried this, it isn't working:

request.requestHeaders = [new URLRequestHeader("X-HTTP-Method-Override", 
     DELETE_REQUEST_METHOD)];
Sam
  • 7,252
  • 16
  • 46
  • 65
jonbcampos
  • 191
  • 10

2 Answers2

4

Due to limitations in NPAPI this is not currently possible. The only work-around in Flash Player is to use the as3httpclientlib that builds a new HTTP client through Socket instead of through the browser networking API.

James Ward
  • 29,283
  • 9
  • 49
  • 85
  • I was afraid you/someone would say that. I've looked at that library and it takes quite a bit to set up (and he is obviously having naming issues with his events). I was just wanting something more transparent. Guess I will have to go whole-hog on this one. – jonbcampos Jan 15 '10 at 14:41
  • Actually another option is to proxy the requests through the BlazeDS http proxy service. – James Ward Jan 16 '10 at 04:17
0

The docs for HTTPService say it supports the value "DELETE" for it's "method" property.

Samuel Neff
  • 73,278
  • 17
  • 138
  • 182