Discussion:
Alternative to user:pass@www.domain.com
(too old to reply)
Andrew Brill
2004-09-22 08:19:49 UTC
Permalink
Since user:***@www.domain.com has been blocked, is there anything that can
be done with wininet (or any other method) to log a user into our website
programatically? Up until now we've only used wininet for uploading and
downloading files. And currently one of the files downloaded allows the
software to check if they're authorised to access the site so we don't need
to bother them with the login if they access our site via our software
rather than our homepage.
Brian Combs
2004-09-24 20:28:14 UTC
Permalink
Hello
WinInet API set will allow you to auth with out using
user:***@www.domain.com. Please see SDK for more info.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/win
inet/handling_authentication.asp

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Andrew Brill" <***@ReplyToNewsgroup.dragon2000.co.uk>
| Subject: Alternative to user:***@www.domain.com
| Date: Wed, 22 Sep 2004 09:19:49 +0100
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <***@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| NNTP-Posting-Host: mail2.dragon2000.co.uk 195.60.23.208
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetsdk.programming.wininet:11359
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
| Since user:***@www.domain.com has been blocked, is there anything that
can
| be done with wininet (or any other method) to log a user into our website
| programatically? Up until now we've only used wininet for uploading and
| downloading files. And currently one of the files downloaded allows the
| software to check if they're authorised to access the site so we don't
need
| to bother them with the login if they access our site via our software
| rather than our homepage.
|
|
|
Andrew Brill
2004-09-28 08:59:48 UTC
Permalink
Thanks a lot. That'll do nicely.
Post by Brian Combs
Hello
WinInet API set will allow you to auth with out using
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/win
inet/handling_authentication.asp
Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Date: Wed, 22 Sep 2004 09:19:49 +0100
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| NNTP-Posting-Host: mail2.dragon2000.co.uk 195.60.23.208
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08
phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetsdk.programming.wininet:11359
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
can
| be done with wininet (or any other method) to log a user into our website
| programatically? Up until now we've only used wininet for uploading and
| downloading files. And currently one of the files downloaded allows the
| software to check if they're authorised to access the site so we don't
need
| to bother them with the login if they access our site via our software
| rather than our homepage.
|
|
|
Andrew Brill
2004-10-08 13:42:13 UTC
Permalink
OK, I've now had a look at that article - I think I actually asked the wrong
question.
I know how to open IE using shell and i know how to authenticate to a web
server using wininet. What I don't knwo how to do is both. How can I open
a passworded website in the users IE and log in for them?

I'm struggling to find answers in google. Too much irrelevant information
is returned for the search terms i am trying.
Andrew Brill
2004-10-08 14:15:41 UTC
Permalink
I've found code to fill out a form but our site uses the popup login box
that IE raises when visting a url protected by htaccess. Is it possible to
fill this out?
Brian Combs
2004-10-08 19:39:21 UTC
Permalink
Hello
If the user is using IE you will not be able to use WinInet code to handle
the logon form that your site uses. If the site is using basic auth you can
make a request to the site using WinInet API calls to auth the user. In
this case IE or Browser Control will need to run in the same process as
your WinInet code did. Bottom line is there is no easy way to do what you
are trying to do. You may want to talk to the owners of the site to see how
you can automate auth to the site. It could be that they have designed the
site to make it hard to do this as they don't want folks automating code to
access the site.

Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Andrew Brill" <***@ReplyToNewsgroup.dragon2000.co.uk>
| References: <***@TK2MSFTNGP14.phx.gbl>
<***@cpmsftngxa06.phx.gbl>
<***@TK2MSFTNGP12.phx.gbl>
<***@tk2msftngp13.phx.gbl>
| Subject: Re: Alternative to user:***@www.domain.com
| Date: Fri, 8 Oct 2004 15:15:41 +0100
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <***@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| NNTP-Posting-Host: mail2.dragon2000.co.uk 195.60.23.208
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.inetsdk.programming.wininet:11406
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
| I've found code to fill out a form but our site uses the popup login box
| that IE raises when visting a url protected by htaccess. Is it possible
to
| fill this out?
|
|
|

Continue reading on narkive:
Loading...