Created
January 15, 2026 19:09
-
-
Save marrold/3da344bd1ef4eb38eb5b97838f7414a2 to your computer and use it in GitHub Desktop.
CISCO TCL HTTP POST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "tmpsys:lib/tcl/http.tcl" | |
| # Set URL | |
| set url "http://webhook.site/41fedca7-6b73-4214-90e4-d15f16b622f2" | |
| # Set POST body | |
| set body "loop_resistance_ohms{port=\"0/0/3\"} 447\n" | |
| # Build request | |
| set Token [::http::geturl $url -type "text/plain" -query $body ] | |
| # Put response | |
| puts [::http::data $Token] | |
| # Cleanup | |
| ::http::cleanup $Token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment