curl -i -X PUT -H 'Content-Length: 1000' http://dfdc:[email protected]:xx/directory/
Above curl doesn't produce any response at Ubuntu shell prompt.
curl -i -X PUT -H 'Content-Length: 1000' http://dfdc:[email protected]:xx/directory/
Above curl doesn't produce any response at Ubuntu shell prompt.
First: If I try this, the command does not return at all.
Calling curl with -v to get some more verbose output, I can see, that the PUT is sent, but the server sits and waits for more to come. This is because you gave "Content-Length: 1000" without giving any content.
If you omit this header, you get a response.
Second: What are you PUTting? As with POST you should give some data with --data or -d
i.e.
curl -i -X PUT -H 'Content-Length: 1000' -d "@somefile" http://dfdc:[email protected]:xx/directory/