I have a basic WCF service and I want to test it using HttpWebRequest. The problem is that I use basic authentication. How do I add a header with basic authentication?
That's my code so far:
var request = (HttpWebRequest)WebRequest.Create(url);
Thanks