Corticus
Well-known Member
- Joined
- Apr 30, 2002
- Messages
- 1,579
Hi all,
I'm trying to submit an HTTP DELETE.
My POST is working and my GET is working fine.
Here's what I have for the DELETE which is not working:
It is possible that my code is ok, and that the server is not handling properly, but that's less likely considering I've never done a DELETE from VBA.
For what it's worth, the stderrout is this:
servlet.PageNotFound:183 - Request method 'DELETE' not supported
I think the problem is that I used my POST code and just changed POST to DELETE and removed the message body. That's probably not going to hack it, I suspect.
Thanks.
I'm trying to submit an HTTP DELETE.
My POST is working and my GET is working fine.
Here's what I have for the DELETE which is not working:
Code:
Public Function deleteHTTP(ByVal URL, message) As String
Dim HTTPobj As WinHttp.WinHttpRequest
Set HTTPobj = New WinHttp.WinHttpRequest
With HTTPobj
.Open "DELETE", URL
.send
End With
deleteHTTP = HTTPobj.responseText
End Function
It is possible that my code is ok, and that the server is not handling properly, but that's less likely considering I've never done a DELETE from VBA.
For what it's worth, the stderrout is this:
servlet.PageNotFound:183 - Request method 'DELETE' not supported
I think the problem is that I used my POST code and just changed POST to DELETE and removed the message body. That's probably not going to hack it, I suspect.
Thanks.