Skip to content

Instantly share code, notes, and snippets.

@marrold
Created January 15, 2026 19:09
Show Gist options
  • Select an option

  • Save marrold/3da344bd1ef4eb38eb5b97838f7414a2 to your computer and use it in GitHub Desktop.

Select an option

Save marrold/3da344bd1ef4eb38eb5b97838f7414a2 to your computer and use it in GitHub Desktop.
CISCO TCL HTTP POST
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