1
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.

1
  • And your question is, “Why?”CommentedJan 24, 2015 at 15:46

1 Answer 1

1

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/ 
1
  • Why is this downvoted? If you're going to downvote, at least comment. This is exactly what I would have suggested.CommentedJul 5, 2017 at 17:33

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.