views:

1660

answers:

5

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?

+3  A: 

You can try using wget for Windows.

Patrick Cuff
+1  A: 

What are you allowed to install? Could you use wget for Windows for instance? Or write a .NET executable which does everything you need it to using WebClient or HttpWebRequest?

Jon Skeet
I am thinking about writing a .net app, but have been hoping that there's an easy way to do it from a batch file.
Thomas Danecker
+6  A: 

Take a look at curl. It's a cross-platform command-line tool for making web requests (similar to wget if you've used that before). You should be able to call that from your batch file.

Herms
+1  A: 

I would suggest either wget or curl. Win32 versions are available for both.

j_random_hacker
A: 

The "curl" utiliity which is basically a command line wrapper for the wonderful libcurl library will handle almost any http request or response. Its freely available for free.

James Anderson