Tags: authentication, basic, message, net, page, password, requires, security, systemnetwebrequest, username, xml

Basic Authentication on a System.Net.WebRequest

On .Net » .Net Security

346 words with 0 Comments; publish: Sun, 06 Jan 2008 03:26:00 GMT; (10060.55, « »)

I'm trying to post an XML message from my page to another page and that page requires basic authentication. How do I set the username and password for basic authentication in the WebRequest object? It doesn't look like there are any properties that can be set, so I'm guessing I'll have to do this in a header.

Any examples?

All Comments

Leave a comment...

  • 0 Comments