I am trying to use Wget to access a RESTful interface, but I can not figure out how to do HTTP PUT with Wget. How can I do it? Or isn't it prossible?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Wget can't do PUT. Use cURL instead, with |
||||
|
|
|
Since this is REST interface, I think you'd want to use
Or if you need to "post" data from a file, like an XML:
|
|||
|
|
|
For me following worked:
For some reason when I did following it nothing happened (no error as well):
|
|||
|
|
If you don't want to use a file as data, you can do the following.
|
||||
|
|