I did get it to work by using the -UseDefaultCredentials switch. I'm
not sure what it does differently than using -Credential and a
supplied PSCredential object.
# Bad Request
PUT
http://dul-524-l7:8080/docs/newdoc HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 6.1; en-US)
WindowsPowerShell/3.0
Content-Type: application/json
Authorization: Negotiate oYIGmjCCBpagAwoBAaKC... 2261 random
characters
Host: dul-524-l7:8080
Content-Length: 16
{"name":"chris"}
#Working Request
PUT
http://dul-524-l7:8080/docs/newdoc HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 6.1; en-US)
WindowsPowerShell/3.0
Content-Type: application/json
Authorization: Negotiate oXcwdaADCgEBoloEWE5UTE1TU1AAA...165 random
characters
Host: dul-524-l7:8080
Content-Length: 16
{"name":"chris"}