I’m trying to make a request using CURL like this:
curl -X DELETE "https://myhost/context/path/users/OXYugGKg207g5uN/07V"
where OXYugGKg207g5uN/07V
is a hash, so I suppose that I need to encode before do this request.
I have tried curl -X DELETE --data-urlenconded "https://myhost/context/path/users/OXYugGKg207g5uN/07V"
Some ideas?
Try this
It is equivilent to
Here, every character is replaced by its byte respresentation... I don't think it is particularly pretty, but it works.
If really
OXYugGKg207g5uN/07V
is the hash then you need to encode that, not the whole url. You can use an encoding function available inside the environment you use cURL in.