Reputation: 13
I'm currently using a busybox in a Kubernetes Pod and would like to let this Container (busybox) run a http delete request like this:
while true; do curl -X DELETE https://blabla.com/api/v1/messages; sleep 604800; done
Since curl doesn't work (not available in the image) but nc and wget would work, is there a good way to use them for this case?
Upvotes: 1
Views: 1358
Reputation: 1407
Wget:
wget --method=DELETE https://blabla.com/api/v1/messages
To get result in stdout, like in curl
wget -q -O - --method=DELETE http://localhost:8080
Upvotes: 1