Hi, I am trying to connect to a REST API with Digest Authentication. I am trying to replicate a PUT request from using the following sample curl request - curl -v --digest --user *****:***** -H "Content-Type: application/xml" -X PUT -d 'John Doe '"http://localhost:8003/v1/documents?uri=/docs/person.xml" I have implemented a dummy GET request to get the WWW-Authenticate response header value I have tried to append the Username to this header and use it with a GET request immediately after that. But the response says unauthorized in all the combinations I've tried. Any pointers ? Regards, Kshitij
↧