Re: HTTP Request In A Script

From: Willeat, Todd (TWilleat@MHP.SMHS.COM)
Date: Tue Mar 16 2004 - 12:35:14 EST


Take a look at Snarf - http://www.xach.com/snarf/
<http://www.xach.com/snarf/>

-----Original Message-----
From: Darryl Ousterhout [mailto:D.Ousterhout@LABSAFETY.COM]
Sent: Tuesday, March 16, 2004 11:19 AM
To: aix-l@Princeton.EDU
Subject: HTTP Request In A Script

Admins,

Not sure if this can be done or not. I need to make an HTTP request to a
server from within a script. This is for a monitoring script that will page
my phone when a high threshold is reached (like a full filesystem). I have
the syntax from an .asp file that makes the request via a Windows browser,
but I have no clue how to do this from within a korn shell script. Here is a
sample of the syntax:

//var winhandle = window.open('http://xx.xx.xx.xxx/index.php?number=' +
txtNumber + '&message=' + txtMessage + '&Send=Send' , 'def',
width=700,height=600,screenX=0,screenY=0,location=no,resizable=yes,scrollbar
s=yes');

Or if anyone has something similar implemented that they'd like to share,
that would be a great help also.

Thanks in advance,
-Darryl



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:43 EDT