I can call the following url in a browser and it works:
http://test.shop.ch/shop/Admin/caller/caller_aufruf.php?do=set_kategorien
It does not give soemthing back - only execute the php.
But when I try to call the same with C# like
using (var client = new WebClient()) {
var uri = new Uri("http://test.shop.ch/shop/Admin/caller/caller_aufruf.php?do=set_kategorien");
cResponse = client.DownloadString(uri);
}
I always get a WebException:
The request failed with HTTP status 401: Unauthorized.
Can someone help me, what I am doing wrong? - Thanks.