Groovy HTTP DELETE requires a payload.
I have been having issues where the Logout for Arista Wireless Cloudvision requires you to send http delete with no payload, I tried various ways to send the Delete with no payload and could not get any to work examples include sending "", {}, "{}" none of which were effective.
Has anyone else experienced this issue and worked around it.
The above reference is not very useful, but its all I have :)
SteveBamford
Posted 1 year ago·Last reply 1 year ago
3 comments
Michael Rodrigues
·1 year agoSteveBamford are you able to get it to work at all? Maybe with cURL or something? I'm surprised the "" doesn't work, as that should be equivalent to sending no payload.
SteveBamford
OP1 year agoHi Mike,
So a HTTP Delete via Python Requests with no payload works, its only in Groovy I can't get it to work.
As Per LM's own documentation it requires the URI, Data and Headers extract below, tried a few different methods of null data and it just didn't work.
delete(java.lang.String uri, java.lang.String data, java.util.Map headers)
Michael Rodrigues
·1 year agoSteveBamford seems odd, since the payload is just tacked on AFAIK, and tacking on an empty string should be the same as no payload.
There may be something else going on behind the scenes.
Maybe point LM and your python script at something like `python -m http.server` and see what the difference is between Python's and ours.