Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to authenticate the proxy....

68 views
Skip to first unread message

selva

unread,
Nov 9, 2006, 4:21:36 AM11/9/06
to
currently we are working with winhttp
while iam trying to connect with the proxy server it is returning the
error 407 proxy authentication required,
how to authenticate the proxy?
how can we insist the user to give the authentication parameters for
proxy on every startup
how to make our application work like IE which automatically
autenticate the proxy.

please help me regarding this issue....

regards
selva

deepakk

unread,
Nov 9, 2006, 1:37:17 PM11/9/06
to
Look in the MSDN SDK docs for reference
WinHttpSetCredentials or IWinHttpRequest::SetCredentials based on your
needs.

Note : When using Passport authentication, however, a WinHTTP
application responding to a 407 status code must use WinHttpSetOption
to provide proxy credentials rather than WinHttpSetCredentials. This is
only true when using Passport authentication; in all other
circumstances, use WinHttpSetCredentials


To automatically authenticate investigate the option using the
WinHttpSetOption function with the WINHTTP_OPTION_AUTOLOGON_POLICY
flag.

Good Reference would be

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/authentication_in_winhttp.asp

Hope it helps,
Deepak

deepakk

unread,
Nov 9, 2006, 1:37:19 PM11/9/06
to
Look in the MSDN SDK docs for reference
WinHttpSetCredentials or IWinHttpRequest::SetCredentials based on your
needs.

Note : When using Passport authentication, however, a WinHTTP
application responding to a 407 status code must use WinHttpSetOption
to provide proxy credentials rather than WinHttpSetCredentials. This is
only true when using Passport authentication; in all other
circumstances, use WinHttpSetCredentials


To automatically authenticate investigate the option using the
WinHttpSetOption function with the WINHTTP_OPTION_AUTOLOGON_POLICY
flag.

Good Reference would be

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/authentication_in_winhttp.asp

Hope it helps,
Deepak

selva

unread,
Nov 9, 2006, 11:52:26 PM11/9/06
to
thanks deepak
0 new messages