I want to request reports from a third party and they require "Basic Access Authentication" via POST:
Your client application must use Basic Access Authentication to send the user name and password.
Can someone point me in the right direction?
Edit: I did see this post but there are two answers and I'm not sure if thats what I need to do or which one is the preferred method.
Assuming you use a WebRequest, you attach a CredentialCache to your request:
The basic gist is like this:
but sometimes there are issues with using request credentials, the alternative is add the authentication data in request headers
for more details see this blog post
http://charlie.cu.cc/2012/05/how-use-basic-http-authentication-c-web-request/