Official Content

These properties allow you to specify a proxy http.

Syntax

&DataType.ProxyServerHost

Type Returned:
Character

&DataType.ProxyServerPort

Type Returned:
Numeric

Description

They allow you to specify a proxy http. In windows environment, the one configured in the PC is automatically used.

Note:
In the case of Java generators, it should be noted that if the servlet engine is executed in Windows, the application will automatically obtain the proxy http configuration and the list of hosts for which it is not possible to use the proxy. 

If it is executed in another platform, the proxy must be specified as a ‘System Property’ from the command line of the interpreter, e.g.: 
java -Dhttp.proxyHost=your.proxy.com -Dhttp.proxyPort=XX <mainclass>

 

In the case of .NET Framework generator, getting the value of the proxy with these properties may depend on the user configured in the IIS and the permissions assigned to it.

In case the properties return empty, change the user configured in the application pool that the application uses directly in the IIS Manager for another one with more permissions, for example, the user administrator of the machine.

If you receive an ErrCode=1 and a timeout error while using the configured proxy under Network & Internet -> Proxy Server on Windows, please ensure that the 'Proxy IP Address' property does not begin with 'http' or 'https'. For example, instead of 'http://myproxy.com' or 'https://193.15.14.198', use 'myproxy.com' or '193.15.14.198' respectively.

Scope

Extended Data Types: HttpClient
Languages: .NET, Java, Visual FoxPro (up to GeneXus X Evolution 3), Ruby(up to GeneXus X Evolution 3), 

See Also

HttpClient Data Type








Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant