469,622 Members | 2,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

"Microsoft.XMLHTTP = delete request?

Hi,
I would like to send DELETE request to google calendar but nothing of
this works:
xmlhttp.open("POST",del,false);
xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE");
xmlhttp.send();
or
xmlhttp.open("DELETE",del,false);
xmlhttp.send();

MSE debugger displays error: Access denied to both of the solutions..
is there any way how to solve it?
Thanks
Feb 11 '08 #1
7 5788
On Feb 11, 1:36 pm, czechboy <oldrich.s...@gmail.comwrote:
Hi,
I would like to send DELETE request to google calendar but nothing of
this works:
xmlhttp.open("POST",del,false);
xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE");
xmlhttp.send();
or
xmlhttp.open("DELETE",del,false);
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...
Feb 11 '08 #2
I am try

On 11 Ún, 15:13, GArlington <garling...@tiscali.co.ukwrote:
On Feb 11, 1:36 pm, czechboy <oldrich.s...@gmail.comwrote:
Hi,
I would like to send DELETE request to google calendar but nothing of
this works:
xmlhttp.open("POST",del,false);
xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE");
xmlhttp.send();
or
xmlhttp.open("DELETE",del,false);
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
http://code.google.com/apis/calendar...DeletingEvents
).
Feb 11 '08 #3
czechboy schreef:
I am trying to delete Calendar Event (see
http://code.google.com/apis/calendar...DeletingEvents
).
It appears that you need to send the XML describing the item you want to
delete along with the DELETE request method.
JW
Feb 11 '08 #4
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.XMLHTTP"); ? 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
Feb 11 '08 #5
On Feb 11, 2:22 pm, czechboy <oldrich.s...@gmail.comwrote:
I am try

On 11 Ún, 15:13, GArlington <garling...@tiscali.co.ukwrote:
On Feb 11, 1:36 pm, czechboy <oldrich.s...@gmail.comwrote:
Hi,
I would like to send DELETE request to google calendar but nothing of
this works:
xmlhttp.open("POST",del,false);
xmlhttp.setRequestHeader("X-HTTP-Method-Override", "DELETE");
xmlhttp.send();
or
xmlhttp.open("DELETE",del,false);
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_guide_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.
Feb 12 '08 #6
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
Feb 14 '08 #7
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
Feb 17 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by CodeCracker | last post: by
30 posts views Thread by Medvedev | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.