"Microsoft.XMLHTTP = delete request?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • czechboy

    "Microsoft.XMLHTTP = delete request?

    Hi,
    I would like to send DELETE request to google calendar but nothing of
    this works:
    xmlhttp.open("P OST",del,false) ;
    xmlhttp.setRequ estHeader("X-HTTP-Method-Override", "DELETE");
    xmlhttp.send();
    or
    xmlhttp.open("D ELETE",del,fals e);
    xmlhttp.send();

    MSE debugger displays error: Access denied to both of the solutions..
    is there any way how to solve it?
    Thanks
  • GArlington

    #2
    Re: "Microsoft .XMLHTTP = delete request?

    On Feb 11, 1:36 pm, czechboy <oldrich.s...@g mail.comwrote:
    Hi,
    I would like to send DELETE request to google calendar but nothing of
    this works:
    xmlhttp.open("P OST",del,false) ;
    xmlhttp.setRequ estHeader("X-HTTP-Method-Override", "DELETE");
    xmlhttp.send();
    or
    xmlhttp.open("D ELETE",del,fals e);
    xmlhttp.send();
    >
    MSE debugger displays error: Access denied to both of the solutions..
    is there any way how to solve it?
    Thanks
    What are you trying to "DELETE"?
    Read a bit more about "xmlhttp" ansd then ...
    read a little bit more still...

    Comment

    • czechboy

      #3
      Re: &quot;Microsoft .XMLHTTP = delete request?

      I am try

      On 11 Ún, 15:13, GArlington <garling...@tis cali.co.ukwrote :
      On Feb 11, 1:36 pm, czechboy <oldrich.s...@g mail.comwrote:
      >
      Hi,
      I would like to send DELETE request to google calendar but nothing of
      this works:
      xmlhttp.open("P OST",del,false) ;
      xmlhttp.setRequ estHeader("X-HTTP-Method-Override", "DELETE");
      xmlhttp.send();
      or
      xmlhttp.open("D ELETE",del,fals e);
      xmlhttp.send();
      >
      MSE debugger displays error: Access denied to both of the solutions..
      is there any way how to solve it?
      Thanks
      >
      What are you trying to "DELETE"?
      Read a bit more about "xmlhttp" ansd then ...
      read a little bit more still...
      I am trying to delete Calendar Event (see

      ).

      Comment

      • Janwillem Borleffs

        #4
        Re: &quot;Microsoft .XMLHTTP = delete request?

        czechboy schreef:It appears that you need to send the XML describing the item you want to
        delete along with the DELETE request method.


        JW

        Comment

        • Janwillem Borleffs

          #5
          Re: &quot;Microsoft .XMLHTTP = delete request?

          czechboy schreef:
          I do not think so. It is already described in the url of the reguest.
          But generaly. Is it allowed to send DELETE request via WSH jscript new
          ActiveXObject(" Microsoft.XMLHT TP"); ? Here http://safari.oreilly.com/9780596529260/faking-put
          I can read that:
          >
          [...]

          What happens when you try doing this through a manual telnet session?


          telnet google_host port_no
          DELETE /path HTTP/1.0
          [enter]
          [enter]


          JW

          Comment

          • GArlington

            #6
            Re: &quot;Microsoft .XMLHTTP = delete request?

            On Feb 11, 2:22 pm, czechboy <oldrich.s...@g mail.comwrote:
            I am try
            >
            On 11 Ún, 15:13, GArlington <garling...@tis cali.co.ukwrote :
            >
            >
            >
            On Feb 11, 1:36 pm, czechboy <oldrich.s...@g mail.comwrote:
            >
            Hi,
            I would like to send DELETE request to google calendar but nothing of
            this works:
            xmlhttp.open("P OST",del,false) ;
            xmlhttp.setRequ estHeader("X-HTTP-Method-Override", "DELETE");
            xmlhttp.send();
            or
            xmlhttp.open("D ELETE",del,fals e);
            xmlhttp.send();
            >
            MSE debugger displays error: Access denied to both of the solutions..
            is there any way how to solve it?
            Thanks
            >
            What are you trying to "DELETE"?
            Read a bit more about "xmlhttp" ansd then ...
            read a little bit more still...
            >
            I am trying to delete Calendar Event (seehttp://code.google.com/apis/calendar/developers_guid e_protocol.html #D...
            ).
            OK, it looks like you are right in using http DELETE method to delete
            calendar events (this is what I understood from reading their docs).
            The problem is that either xmlhttp considers it "unsafe" or the server
            does not receive your authenticated user info and decides that you are
            NOT authorised to delete the event.

            Comment

            • Thomas 'PointedEars' Lahn

              #7
              Re: &quot;Microsoft .XMLHTTP = delete request?

              czechboy wrote:
              [<http://safari.oreilly. com/9780596529260/faking-put>:]
              "Not all clients support HTTP PUT and DELETE. The action of an XHTML 4
              form can only be GET or POST, [...]
              There is no XHTML 4 yet.


              PointedEars

              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: &quot;Microsoft .XMLHTTP = delete request?

                Bart Van der Donck wrote:
                czechboy wrote:
                >[<http://safari.oreilly. com/9780596529260/faking-put>]
                >
                I think this quote is not relevant. XMLHttpRequest doesn't care about
                (X)HTML versions. The only requirement here is that it supports the
                DELETE method, which it does.
                >
                From http://www.w3.org/TR/XMLHttpRequest/
                >
                | *should* support any HTTP method that matches the Method
                | production and *must* at least support the following methods:
                | GET
                | POST
                | HEAD
                | PUT
                | DELETE
                | OPTIONS
                That's irrelevant either. You are quoting from a *working draft*.
                From http://msdn2.microsoft.com/en-us/lib...48(VS.85).aspx
                >
                | DELETE [...] Delete data for URI
                Relevant, but only to MSXML.


                PointedEars

                Comment

                Working...