Consultor Eletrônico



Kbase P81781: How to check if the Progress session uses the proxy server
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/10/2004
Status: Unverified

GOAL:

How to check if the Progress session uses the proxy server

GOAL:

Is there way to check if the WebClient uses the proxy server

FIX:

There are several ways that to determine programmatically if the
Progress session is using the connection through the proxy:

1. You can use Solution# P20891 "How to return the command line of Windows Progress Session?"
which describes how to use the Windows API GetCommandLineA in order to get the
session startup parameters. Once this information is obtained
in an character variable, it can be searched search for the occurrence of the
'-proxyhost' and 'proxyport'. If these values are found, then the session
is using proxy connection.

2. There is attribute of the SESSION system handle introduced in
9.1D07 called STARTUP-PARAMETERS which can be used in the same way as
in the previous example. This might be better approach than (1) because
it even provides the parameters that are in the pf file, and that is
not the case with (1).

3. If it is certain that there is always required authentication on
the proxy server, then the following attributes can be used:
SESSION:PROXY-USERID and/or SESSION:PROXY-PASSWORD
to determine if the proxy is being used. However, this will not
work unless the proxy server requires authentication as these
attributes will not contain any value in that case.