Where do I find 'GET'?

mattmend

Registered
Hi -

I need to set up a cron that periodically performs the following command:

"GET http://someurl.com"

None of my machines seem to recognize 'GET'. What do I need to install to provide this capability? I have Fink installed so if it's a Un*x/BSD app, I should be able to find it there. Just not sure what to look for.

TIA -

Matt
 
mattmend said:
Hi -

I need to set up a cron that periodically performs the following command:

"GET http://someurl.com"

None of my machines seem to recognize 'GET'. What do I need to install to provide this capability? I have Fink installed so if it's a Un*x/BSD app, I should be able to find it there. Just not sure what to look for.
Look for wget, should be in FINK somewhere. It will get web pages via the command line
 
I agree with profx, just use curl.

BUT if you want to use wget you can install it from fink (`sudo fink install wget`)

I don't have get and I couldn't find it on sourceforge either (at first glance).
 
if curl works for you it's probably easiest. wget lets you define more stuff, like making the script send specific cookies or user-agent strings.
 
curl does:
user agent
cookies
http authentication
compression
http referrer
max transfer rate
supports http https ftp
proxy support
get/post on http

sounds like i'm trying to sell you something... i'm not... honest!
 
Right - I remember now the thing I needed wget for - it parses html, and recursively downloads the linked files. Also it will do things like act as a spider: not save the files, just check that the links are valid.
 
Back
Top