Discussion:
how to authenticate the proxy....
(too old to reply)
selva
2006-11-09 09:21:36 UTC
Permalink
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
2006-11-09 18:37:17 UTC
Permalink
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
Post by selva
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
2006-11-09 18:37:19 UTC
Permalink
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
Post by selva
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
selva
2006-11-10 04:52:26 UTC
Permalink
thanks deepak
Post by deepakk
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
Post by selva
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
Continue reading on narkive:
Loading...