[TriLUG] seeking WGET assistance, maybe LYNX is the answer ??
Aaron S. Joyner
aaron at joyner.ws
Thu Sep 23 18:44:16 EDT 2004
William Sutton wrote:
>Pushing the Perl as a Hammer paradigm here, but why not use
>LWP::UserAgent?
>
>William
>
>On Thu, 23 Sep 2004, Turnpike Man wrote:
>
>
>
>>I am connecting to a temp/humidity device with embedded web server. It comes
>>with a win32 based HTTPGET.exe proggy that has 2 switches in it that I need,
>>but I don't want to use win32, plus the alarm portion requires Outlook to be
>>installed with a working profile on the monitoring machine, which would be a
>>server and I don't wanna do that.
>>
>>So it would seem WGET would be a Linux replacement I could find such switches
>>in, but I'm having not so good luck. Here's the description of the WGET
>>switches I'm seeking:
>>
>>1. raw mode (no HTTP headers) {-r in HTTPGET}
>>2. POST string to URL {-S in HTTPGET}
>>
>>
>>
Not to discount the usefulness of LWP at all (that's certainly a
programmatic way to do it), but if you're looking for a more
single-command oriented user interface, curl does a nicer job of
"posting" www than wget, IMHO. By nicer I suppose I mean it has a
cleaner interface (and can handle cookies, other elements, etc although
your particular app doesn't appear to require it). You may want to
investigate it as well.
Aaron J.
More information about the TriLUG
mailing list