This could work with other web requests. But for this particular article, I will be using the curl command.
Currently, the Gateway has no way to authenticate a Windows login. The gateway only supports HTTP basic access authentication for REST requests. (https://resources.itrsgroup.com/docs/geneos/Gateway2/reference_guide/index.html#user-authentication)
1) Gateway version of GA3.7.0 or higher with restService enabled. We recommend that, when authentication is enabled, the REST service is restricted to run on secure connections only.
2) The curl command.
-u option to include the username and password separated by a colon:
If you want to keep your password from being shown in your bash_history. You can simply just use the
-u option to include the username, and curl will prompt for a password. You should also be using a secure connection to the Gateway, as shown: