PUT and DELETE in Flash AS3

I am working on the Google Calendar API which has been built for Flex/AIR. In the API, for performing a Delete or Update operation, it uses DELETE or PUT methods in the URLRequest. But I think these being REST based calls are supported in AIR.
I am using this API in a Flash/AS3 application and have successfully implemented the Update functionality by using X-HTTP-Method-Override method for PUT and instead using POST, which is supported in Flash. But when I try to do the same thing for Delete method, I get a 401 error in the API call.
Any idea how this problem could be solved?

AIR supports all the specified HTTP methods, but there seems to be a bug in the HTTPService class. Instead you should use URLLoader and URLRequest. If you change to that you won't even need to use the Method Override header.
Read more here : http://spy6.blogspot.com/2009/06/adobe-air-put-delete-head-http-methods.html .

Similar Messages

  • HTTP - GET, POST, PUT and DELETE

    Which of these are implemented and supported by Flex 4 and which from AiR 2 ?
    Are there any libraries or other workarounds for non supported ones?

    I've spent many hours on this and here is the deal as I understand it.
    1) HttpService and HttpMultiService claim to support PUT and DELETE in the docs, but that only applies via a server proxy even in AIR
    2) flash.net.URLRequest supports PUT and DELETE from AIR without a proxy, but not in the browser. I understand FlashPlayer works through the browsers network connection, so cannot support PUT and DELETE when the browser doesn't
    3) as3httpclientlib has been working fine for me for development in AIR on MacOS with HTTPS Basic Authentication, but failing with an encryption issue in my iPad app. I haven't solved this, and am switching to URLRequest. There was a showstopping limitation (bug FP-6) in FlashPlayer that prevented as3httpclientlib from reliably doing large uploads. The limitation has been addressed in recent versions of AIR and Flashplayer, but as3httpclientlib hasn't been updated to take advantage of it
    4) Checkout as3awss3lib - it does PUT and DELETE with URLRequest
    Cheers,
    Gary
    blog.buzzware.com.au

  • How do i find and delete adobe flash installer

    how do i find and delete adobe flash installer

    It is likely in your Downloads folder if you downloaded it from Adobe. If you downloaded it from someplace else, please add more details.

  • RESTful service with POST, GET, PUT and DELETE

    I'm implementing a RESTful service, but mod_plsql only gives me GET, POST and HEAD commands.
    However, if I try to use the PUT command, the response is:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>501 Method Not Implemented</TITLE>
    </HEAD><BODY>
    <H1>Method Not Implemented</H1>
    PUT to *** not supported.<P>
    mod_plsql: request method not supported<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at *** Port 80</ADDRESS>
    </BODY></HTML>Is it possible to add support for PUT and DELETE in mod_plsql?
    I've search all packages and code, but I haven't found anything that specifies the valid HTTP commands or the source for generating the above error message.

    AIR supports all the specified HTTP methods, but there seems to be a bug in the HTTPService class. Instead you should use URLLoader and URLRequest. If you change to that you won't even need to use the Method Override header.
    Read more here : http://spy6.blogspot.com/2009/06/adobe-air-put-delete-head-http-methods.html .

  • Disable PUT and DELETE HTTP methods in Sun ONE Web Server 6.1

    Hello ,
    i want disable PUT and DELETE methods in SunOne 6.1 , i don't find the solution ...
    Thnaks to help me .
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS * HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 08:07:41 GMT
    Content-length: 0
    Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR
    Connection: close

    are you sure that it isn't a vulnerability ? if i understand you , OPTIONS * HTTP/1.0 list all the possible methods but they are not actived ?
    i have test with OPTIONS / HTTP/1.0 , is that the those possible methods : HEAD , GET ??
    thanks
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 11:11:07 GMT
    Content-length: 0
    Allow: HEAD, GET
    Connection: close

  • [svn:bz-trunk] 7494: Add testcaseses for http put and delete methods.

    Revision: 7494
    Author:   [email protected]
    Date:     2009-06-02 13:13:33 -0700 (Tue, 02 Jun 2009)
    Log Message:
    Add testcaseses for http put and delete methods. Proxy should return endpoint's content instead of empty body
    Added Paths:
        blazeds/trunk/qa/apps/qa-regress/remote/testMethods.jsp
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/httpservice/bugs/Pu tAndDeleteMethodTests.mxml

    found it - here: http://discussions.apple.com/thread.jspa?threadID=2323131&tstart=30
    I set the Realm to Location instead of Folder. Now I'm prompted for my credentials at the /svn/ URL.

  • HttpService Put and Delete methods support

    Hello,
    HttpService doesn't seem to be supporting PUT and DELETE methods. The trick of using "X-HTTP-Method-Override" did send the request as PUT/DELETE request. But the server side code is unable to detect it as PUT/DELETE request. The server side code is in PHP and uses FuelPHP Framework. 
    Can anyone please suggest a way by which the request can be sent as PUT/DELETE such that it can be identified as same PUT/Delete request.
    Thanks

    Q 1 and 2 : http://blogs.sun.com/meena/entry/disabling_trace_in_sun_java
    About Q 3 ciphers which version of WebServer are you using?

  • PE 7.0 Ignores Preference to Verify and Delete from Flash Card

    PE 6.0 worked correctly but 7.0 ignores the settings in Edit==>Preferences to verify and delete files after importing into PE.  If you change the setting manually every time you import, it does ask to delete files and does delete them but PE 7.0 ignores the preference and I often forget to delete the pictures manually and have a mess when I have new and old pictures on the flash card and it fills up unexpectedly while I am in the field!

    I had the same issue and launched a support case with Adobe. After a short perioed of understanding the issue I was having, the suggestion was a corrupt psa.prf file. I deleted the file per their instructions and the issue went away. Of course I had to change back all my settings in the preferences dialog, but well worth it to eliminate this issue.
    This is the last part of the the dialog from them
    Thank you for writing back to us at Adobe Support.
    I am contacting you in reference to your case #180979764 dated
    06/06/2009.
    I researched on your issue and found some relevant information. I think
    that damaged preference files might be the cause of your issue.
    Let us try to recreate the Photoshop Elements Organizer preferences file
    to eliminate problems that damaged preferences file might cause.
    I would like to inform you that When you use this solution, the
    Organizer will create a new preferences file and you will lose custom
    settings. However, the file that you rename in Step 2 below is your
    original preferences file. If you determine that the preferences file is
    not causing the problem, then you can restore your custom settings by
    following the additional instructions after Step 3.
    To re-create the Photoshop Elements Organizer preferences file:
    1)Close the Photoshop Elements Organizer.
    2)Rename the psa.prf file (for example, to psa.old) in C:\Documents and
    Settings\[your user name]\Application Data\Adobe\Photoshop E
    lements\7.0\Organizer.
    3)Open the Photoshop Elements Organizer. The Organizer creates a new
    preferences file.
    If the problem continues, then a damaged preferences file is not the
    cause of the problem. To restore custom settings, delete the new psa.prf
    file and restore the original name (psa.prf) of the file that you
    renamed.

  • Iis't true about disable put and delete and trace in weblogic?

    i want to known how the http method(put ,delete and trace ) is working in weblogic?

    Hi,
    Enable following parameter
    -DHttpTraceSupportEnabled=true
    and trace your Http Method.
    Regards,
    kal

  • Drag and Drop Bug (Flash, AS3)

    Hello! Help, please! I'm making a game that involves dragging and dropping books. (Right now there is only one book.) While testing my game, I discovered by accident that no matter where I drag on the screen, the draggable book responds, moving around on screen despite the cursor not being on top of it. Here is my code. (It also snaps a larger book mc to the small one for purposes I intend to use later.)
    // Making the small book dragable. //
    small_book.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_6);
    // when the mouse button is clicked...
    function fl_ClickToDrag_6(event:MouseEvent):void
        small_book.startDrag();
        big_book_mc.x = small_book.x;///
        big_book_mc.y = small_book.y;///-----> Makes the big book snap to the lil one when clicked.
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_6);
    // when the mouse button is released...;
    function fl_ReleaseToDrop_6(event:MouseEvent):void
        small_book.stopDrag();
        big_book_mc.x = small_book.x;///
        big_book_mc.y = small_book.y;///-----> Makes the big book snap to the lil one when the mouse button is released.
    stage.addEventListener(MouseEvent.MOUSE_DOWN, dragFn);
    // if the mouse is currently dragging....;
    function dragFn(event:MouseEvent):void
        small_book.startDrag();
        big_book_mc.x = small_book.x;///
        big_book_mc.y = small_book.y;///-----> The big book follows while the mouse is dragging.
    // the small book is now draggable and the big book snaps to it.

    your stage listeners should be added in the mousedown listener functions and then removed in the mouseup listener functions.
    and just to clarify, your small book starts dragging no matter where there is a mousedown?

  • Support for HTTP PUT and HTTP DELETE

    Is there a plan for proper HTTP PUT and HTTP DELETE in Flash
    Player and/or Flex? There's not much information on the subject at
    this point. Is this going to be included in Flex 3? Is there an
    issue I can track? etc.

    This is due to a limitation in the Flash Player so it will
    not be available
    in Flex 3.
    Please continue to log enhancement requests against the Flash
    Player here:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • I am using an Mac PPC version 10.5.8 and I am trying to download the correct version of Flash Player.  I did once but I had to install a "Clean Install" of my computer and when finished I had put back the new Flash Player I just installed well every time

    I am using an Mac PPC version 10.5.8 and I am trying to download the correct version of Flash Player.  I did once but I had to install a "Clean Install" of my computer and when finished I had put back the new Flash Player I just installed well every time I try install the new player it is place in my Trash Folder and I can not get Player to work.  I did everything I was to install it correctly but it still does not install it correctly.  Can some help me.  Bob

    Some MacBook Pro versions cannot be upgraded past 10.6.8; others are maxed out at 10.7.5. newer models can go all the way to 10.10. So it is important to know exactly what version you have--there may be close to 40 variants produced since the MB made its debut in 2006.
    You can safely give us a snapshot of your model and its current config that will allow us to deternmmine your model and its upgrade potential, plus show it you have any software that may impede any upgrades. Please download and install this free utility:
    http://www.etresoft.com/etrecheck
    It is secure and written by one of our most valued members to allow users to show details of their computer's configuration in Apple Support Communities without revealing any sensitive personal data.
    Run the program and click the "Copy report to clipboard" button when it displays the results. Then return here and paste the report into a response to your initial post. It can often show if any harmful files/programs are dragging down your performance.
    Remember that, on leaving OS10.6.8, you lose the ability to run older softare written for older PowerPC Macs (yours in Intel-based). Programs such as Office 2004 will no longer work (min of Office 2008 needed to work on newer OS versions), and AppleWorks will stop working completely

  • I converted aif files to mp3 files in I tunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files in the flash drive.  How do I get the iTunes to only copy the smaller file?

    I converted aif files to mp3 files in iTunes so I could put them on a flash drive.  Now when I transfer an album to the flash drive I get both the aif files and the mp3 files on the flash drive.  How do I get the iTunes to only copy the smaller file?

    My suggestion to use the smart playlist was more along the lines of making one list with rules to show everything in your library as long as it was kind "mpeg" (= mp3).
    Smart playlists cannot be edited manually, only by changing the rules.  You can use them as the basis for another smart playlist though.
    There is added overhead to using smart playlists, so don't go overboard.

  • After updating to snow leopard  and trying to delete mackeeper flash player will no longer work. Can anyone help me?

    After updating to snow leopard and trying to delete mackeeper, Flash player is being blocked and will not allow me to view utubes. Can anyone help?

    Here are instructions for eradicating MacKeeper - you may need to re-install it to uninstall it fully:
    http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/
    Regarding Flash - there are many reports on here that v13.x isn't working for a lot of people. distractme in the following thread posted instructions on how to install the previous version, which should work whilst Adobe work on a fix:
    https://discussions.apple.com/message/25430408#25430408

  • Mail, I have recently been receiving inappropriate mail which I have put to junk and deleted but they keep on coming sometimes 3 or 4 a day, how can I get rid of these once and for all.  I am a lady of advancing years and do not want this.

    I have recently started to receive inappropriate mail.  Although I have never opened it I can tell that it is of a pornographic nature.  As well as this I constantly receive mail offering me P**** enlargement drugs.  Since I am a lady of advanced years I want neither of theses !!!  Can anyone tell me how to get rid of this unwanted stuff.  I receive at least 4 of them everyday and am quite frankly fed up putting them into junk and deleting them, but still they keep coming.  Can anyone help please.

    Craigvarr wrote:
    ...how do I go about finding my email account via the web...
    If your email address ends with @icloud.com, @me.com, or @mac.com then your email is located on Apple's iCloud service. To access that email via the web, click on this link:
    https://www.icloud.com/#mail
    ...and then sign in.
    ...and what should I do when I get into it?
    See these Apple articles:
    iCloud: Manage junk mail
    iCloud: Read email
    iCloud: About your @icloud.com, @me.com, and @mac.com email addresses

Maybe you are looking for

  • ICR-Intercompany Reconciliations - Use of Sets

    Hi ALL We are in the process of implemeting the ICR process and have chosen to go with the Process 003 with Customer and Vendor Open items but at the same time have chosen to include GL Open items from Process 001. Our client requires that only certa

  • Toner Rubbing off of Print on 9040dn Printer

    Hello, I am a desktop support technician and I am having trouble with a 9040dn printer.  The letters on the print feel raised, and if you rub it for a couple of seconds, it will start to come off.  This happens mostly when using bond paper, but some

  • TDS and Excise in MRNB

    Hi I have used MRNB for revaluation of GRs. The TDS amounts are not calculated. How can i post this? Also how can excise be posted? Thanks Rahul

  • Need help regarding Sapscripts

    Hi! I would like to ask if there's anyone here who knows where I can find exercises or technical designs for practice regarding Sapscripts?  It would be better if the Sapscript exercise or technical design would be "start from scratch" so as to ensur

  • Wsdl deplyment in ws navigator

    Hi all. We are provided with a WSDL File which has a excel attachment I have two questions. How/where to deploy this Wsdl to be tested using WSNavigator with attachments. I have gone through "How to send SOAP Message with attachments? is this blog en