Yves Grenier - 2018-01-16

I am trying to access our internal TFS (Team Foundation Server) with the HTTP service. I have tried everything I can to get a positive response but always get a 401 back. What else do I need? It works fine when I invoke the URL with Internet explorer

C:\Windows\System32>staf local http request method get url "http://tfs" session 1 RETURNHEADERS
Error submitting request, RC: 4401
Additional info


{
Status Code : 401
Status Message: Unauthorized
Headers : {
Content-Length : 0
Date : Tue, 16 Jan 2018 13:56:22 GMT
WWW-Authenticate: NTLM
}
Content :
}
I did set a session with username and password:
C:\Windows\System32>staf local http query authenticationhost http://tfs session
1
Response


User : myaccount
Password: *
Domain : mydomain