D
D
Dim2020-04-25 17:30:46
cmd/bat
Dim, 2020-04-25 17:30:46

Easiest and fastest way to send webhook from cmd?

Tell me what is the easiest way to make a GET / POST webhook with parameters to the specified address from the windows command line?
Preferably without installing anything else in the system.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-04-26
@Dee3

90% of more or less modern versions of Windows have powershell
in the script, write
powershell.exe "invoke-webrequest ' https://url ' - usebasicparsing
"
OS version):
1. at the first start, an IE window may appear with profile initialization (in older versions of posh)
2. https may not work if you do not specify a specific TLS implementation to use. Or not work at all if, for example, you have .net 3.5 in the system and the target site uses the minimum version of tls 1.2
Built-in method - powershell only. But you have a chance to face miracles, I warned you.
Alternatively - just download curl

A
Andrey Gavrilov, 2020-04-25
@thexaver

You still have to put something, either wget or curl, postman is best

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question