Re: SHDocVw authetication
From: name (nospam_at_user.com)
Date: 02/24/04
- Next message: Marc Scheuner: "Using the MS IE webbrowser control in a WinForms app to print HTML pages"
- Previous message: Adrian: "Re: How to get the browser proxy server settings"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 03:23:38 -0500
Yahnn, you are dreaming.
======
But nice to see gasping MS realizing how their "Innovations"
trickle down to nothing.
---------------
Do not post to more groups than you can grasp, Moron.
"Eli Allen" <eallen@bcpl.net> wrote in message
news:%23xnHZz28DHA.2752@TK2MSFTNGP09.phx.gbl...
> So now that MS04-004 is out breaking the ability to pass in a
> password/username through the URL how can we pass in a username and
password
> using SHDocVw in c#?
>
> I'm launching IE like this:
>
http://samples.gotdotnet.com/quickstart/howto/doc/Interop/TestClient_1.aspx
> http://www.codeguru.com/cs_webservices/WebInt.html
> with this meathod of referencing SHDocVw:
> http://weblogs.asp.net/stevencohn/archive/2004/01/23/62117.aspx
>
> so my code looks like:
> <code>
> object o = null;
> InternetExplorer ie = null;
> ie = new InternetExplorerClass();
> IWebBrowserApp wb = (IWebBrowserApp) ie;
> string
>
sEncodedCreds=Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(use
> rName + ":" + password ));
> object headers=((object)("Authorization: Basic " + sEncodedCreds +
"\r\n"));
> wb.Navigate(url, ref o, ref o, ref o, ref (object)headers);
> wb.Visible = true;
> </code>
>
> But can't find anyway to pass authetication into the IEApp.Navigate(sURL,
> vFlags, vFrameName, vPostData, vHeaders) method. I'm trying to pass in
the
> basica auth through the header and that works for the page load but IE
> obviously doesn't know its authenticating so none of the links off the
page
> work.
>
> Any ideas? Thanks
> --
> Eli Allen
> eallen@bcpl.net
>
>
- Next message: Marc Scheuner: "Using the MS IE webbrowser control in a WinForms app to print HTML pages"
- Previous message: Adrian: "Re: How to get the browser proxy server settings"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|