- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Support proxy option in webtools add-on

Hi.
I checked the issue below, but I couldn't find proxy option in the code.
https://github.com/bentleymi/ta-webtools/issues/17
Is the proxy option (-x or --proxy) of linux curl available on the WebTools Add-on?
If there is another way that I don't know, please share it.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Just to confirm, I have added a HTTP_PROXY and HTTPS_PROXY and this TA then routes the requests over the proxy.
Ive also made a pull request to the app author's Git repo to enable proxy support directly in the command, as I think there are other usecases where customers are unable to set the HTTP_PROXY and HTTPS_PROXY env variables. Feel free to use the curl.py from the pull request which will allow you to use proxy param: https://github.com/bentleymi/ta-webtools/pull/34/files
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I'm the author and I want to say thanks for your contribution.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @ssanplunk
This app actually uses the python Requests library under the hood and looking through the curl.py script (where it emulates curl requests via SPL command) it does not reference proxy anywhere, and also doesnt support passing additional flags, therefore unfortunately it is not currently possible to pass the curl proxy option to the command.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

The requests module uses environment variables. So as long as the environment from which the process is spawned has those variables set, the module should use the proxy.
See https://requests.readthedocs.io/en/latest/user/advanced/#proxies
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Indeed the app does not support the proxy in the code.
however some have had success in the past by setting a system wide proxy.
https://docs.splunk.com/Documentation/Splunk/9.4.1/Admin/Bestbestpracticesforproxyserver
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

