I use TScHttpWebRequest with the following parameters:
Request.RequestUri := 'http://tfs.ondeso.local/tfs';
Request.Credentials.UserName := 'uuuuuuu';
Request.Credentials.Password := 'ppppppp';
Response := Request.GetResponse;
After the execution I get the status 401
The header of the response contained the following information:
Content-Type text/html; charset=utf-8
X-TFS-ProcessId 95584917-2edb-4155-8249-fe530fb8d901
ActivityId 9358299a-c3e9-4c36-a2c2-427e3ec16641
X-TFS-Session 9358299a-c3e9-4c36-a2c2-427e3ec16641
X-VSS-E2EID 9358299a-c3e9-4c36-a2c2-427e3ec16641
X-TFS-SoapException %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22de%22%3ETF400813%3A%20Diese%20Ressource%20l%C3%A4sst%20keinen%20anonymen%20Zugriff%20zu.%20Clientauthentifizierung%20erforderlich.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError TF400813%3A%20Diese%20Ressource%20l%C3%A4sst%20keinen%20anonymen%20Zugriff%20zu.%20Clientauthentifizierung%20erforderlich.
WWW-Authenticate Bearer
WWW-Authenticate Basic realm="http://tfs.ondeso.local/tfs"
WWW-Authenticate Negotiate
WWW-Authenticate NTLM
X-Powered-By ASP.NET
P3P CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate NTLM
X-Content-Type-Options nosniff
Date Mon, 20 Dec 2021 09:23:36 GMT
Content-Length 20125
What must I change?
TScHttpWebRequest Authorization
-
- Devart Team
- Posts: 70
- Joined: Wed 02 Jun 2021 09:30
Re: TScHttpWebRequest Authorization
Hi there!
Thank you for contacting Devart and for your inquiry!
The problem might be related to a specific authentication setup. This can be either authentication over HTTPS or a special kind of HTTP authentication.
To give you a more complete answer, we need to know the settings of your server.
Please check if you can connect to your server through a browser or some other third-party components.
Let us know if you have any questions!
Thank you for contacting Devart and for your inquiry!
The problem might be related to a specific authentication setup. This can be either authentication over HTTPS or a special kind of HTTP authentication.
To give you a more complete answer, we need to know the settings of your server.
Please check if you can connect to your server through a browser or some other third-party components.
Let us know if you have any questions!