Provide a link to a secure website from a WinForms application



Hi,
I'm struggling with the following problem.

I have a WinForms application (.NET 2.0) where the user can lookup information on companies. In this application, I have to insert links to a third party website which has detailed information of that company. Normally, this website requires a username and password to logon. We got a username and a password from the supplier and they gave us an URL with which we can login directly using a TVA-number as a parameter in the URL. The credentials are to be passed as basic authentication in the http-header.
So, I found out I need to add the following headers:

- WWW-Authenticate : Basic realm="xxx"
- AUTHORIZATION: Basic xxx (where xxx is the base64 encoded username:password string)

I tried a lot of stuff but I can't figure out how to do this.
Using a WebBrowser control from inside the application is not an option. The user has to use the Internet Explorer.

I tried it with a separate website which is running on our webserver. I provided a link in our application which simply links to our website. This website redirects to the third party website but I can't add the necessary stuff to the headers. I'm still getting the inputdialog for a username and password. I installed HTTPDebuggerPro to look at the outgoing headers and the authorization header isn't in it.
When I debug my application I noticed I'm getting an exception (NotSupportedException) on the headers collection stating I need to be in IIS pipeline mode.

When I use a HttpWebRequest and a HttpWebResponse, I get an OK. But what to do next? At that moment, the user still has not an IE in front of him with the information.

Any help is appreciated.
Thanks,
Bart

.



Relevant Pages

  • Re: Provide a link to a secure website from a WinForms application
    ... This opens the default browser but it doesn't logon the user automatically. ... I have to insert links to a third party website which has detailed information of that company. ... this website requires a username and password to logon. ... This website redirects to the third party website but I can't add the necessary stuff to the headers. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Provide a link to a secure website from a WinForms application
    ... This opens the default browser but it doesn't logon the user automatically. ... I have to insert links to a third party website which has detailed information of that company. ... this website requires a username and password to logon. ... This website redirects to the third party website but I can't add the necessary stuff to the headers. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Zone Alarm 3.0 Some Bad News for web sites !
    ... HTTP Referer Headers have been used for a long time now for some basic ... concepts even within a website. ... Touted as a privacy issue, ... > and most important need for this field, is that this tells a web site ...
    (comp.security.firewalls)
  • Re: External Sharepoint is Easy - Cant afford additional IP - WORKAROUND?
    ... headers that flatly stated that different website, ... that's not the first time a technical ... External License: ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ref.recycle bin
    ... Because its an exe on a website doesn't prove that its genuine... ... Because it's an exe in a newsgroup post doesn't prove that its genuine. ... "Newbie Coder" wrote: ... I have just looked at the user's headers & see that the user isn't using IE ...
    (microsoft.public.windowsxp.general)