I
I
istokin2017-06-20 07:43:13
Cisco
istokin, 2017-06-20 07:43:13

How to send a POST request to a URL using Cisco TCL?

You need to send the IP address to pdd.yandex.ru to change the value of the DNS record. PDD only accepts POST requests.
ip ddns update method http - sends a GET. Therefore, I began to look towards sending a request by a script, but I can’t find it, tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-06-20
@sergey-gornostaev

source "tmpsys:lib/tcl/http.tcl"
::http::geturl http://example.com/ -query [::http::formatQuery "param-name" "param-value"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question