I need to execute a http web request from Plesk's Task Scheduler (using shared hosting on Windows/ASP.NET; no Powershell, whatsoever). Thought about using a batch file for this.
Is there an easy way to do this?
batch-filehttpwebrequest
I need to execute a http web request from Plesk's Task Scheduler (using shared hosting on Windows/ASP.NET; no Powershell, whatsoever). Thought about using a batch file for this.
Is there an easy way to do this?
Best Solution
Without external binaries - only the built-in windows capabilities -> https://github.com/npocmaka/batch.scripts/blob/master/hybrids/jscript/winhttpjs.bat
This is
jscript/.bat
hybrid and can be called like simple bat. Example usage (I've used http://requestb.in/ for test purposes):Header files format should look like (if passed with
-header
command argument):Does not support multi-part requests (though I'm planning to add such a feature (some day))