We help IT Professionals succeed at work.

Command line utility\script that sends an HTTP request

Hello,

I am looking for any assistance regarding a command line utility or script that will emulate sending an HTPP request to a particular web server. I will be  looking for the response from this HTTP request in the w3svc logs via a monitoring tool and will then process an action based on the result. I simply cannot find a command line type function to send an HTTP request. Any help is greatly appreciated. 500 pts due to the personal importance of this.  

Charlie
Comment
Watch Question

you can simply telnet to the server on port 80

telnet www.domain.com 80
- this will triiger a request.
CERTIFIED EXPERT
Commented:
If smckellar83's telnet solution did not work for you have you looked at the IIS 6.0 resource kit? TinyGet might be of use.  (http://support.microsoft.com/kb/840671)

Author

Commented:
Yes, I have tired the Telnet option and that doesn't quite offer me what I need with respect to the monitoring tool I am using. I wasn't aware of the TinyGet tool from the IIS 6.0 RESOURCE KIT.  It looks promising, thanks for that. I am going test and let you know how it worked.

Author

Commented:
Lamaslany,

Perfect!  TinyGet does exaclty whay I needed. Here is a sample result from a qiuck test:

C:\Program Files\IIS Resources\TinyGet>tinyget -h localhost /
HTTP/1.1 200 OK
Content-Length: 1433
Content-Type: text/html
Content-Location: http://localhost/iisstart.htm
Last-Modified: Fri, 21 Feb 2003 23:48:30 GMT
Accept-Ranges: bytes
ETag: "09b60bc3dac21:9ea"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Fri, 25 Jan 2008 14:18:16 GMT


500 pts your way!


Charlie

Explore More ContentExplore courses, solutions, and other research materials related to this topic.