[TriLUG] seeking WGET assistance, maybe LYNX is the answer ??
Dave Sorenson
dave at logicalgeek.com
Fri Sep 24 09:35:56 EDT 2004
Is there a web link to said device? It sounds interesting.
DS
-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On Behalf
Of Turnpike Man
Sent: Friday, September 24, 2004 9:30 AM
To: Triangle Linux Users Group discussion list
Subject: Re: [TriLUG] seeking WGET assistance, maybe LYNX is the answer ??
ok, I have the timestamp back in the telnet continuous stream and in the
httpget *SRT and *SRH for temp and humidity respectively. (Hidden switch
that got reset during our troubleshooting yesterday.)
--- Turnpike Man <turnpike420 at yahoo.com> wrote:
> I spent about 45 mins yesterday on the phone with a tech support
> person for this device, and at one point he brought on one of the
programmers.
> Unfortunately, had the programmer actually been paying attention as
> opposed to just being there to make customer service seem better, I
> might have gotten somewhere with the device... maybe.
>
> Interestingly enough, their little HTTPGET.exe proggy is somewhat of a
> missnomer. I don't think it is truely doing an HTTP GET, opposite of
> HTTP POST. However, it kinda is, because the "iServer" embedded web
> device is what is supposed to respond. At any rate, the winsock crap
> is not anything I need to worry about anymore, I think I learned more
> about that and it's just a Windows method of doing TCP/IP
> communication.
>
> Tom put in some interesting python code, again, python, perl, and
> anything outside of HTML, PHP, SQL are greek to me. However, I'm
> still open to such options.
>
> Latest news is... the "continuous mode" in which I can connect via
> telnet and get a data stream of temp, humidity, dewpoint, time, temp,
> humidity, dewpoint, time, etc... has lost the time part, only spewing
> t, h, d now. So I'm working with those folks to get that right. In
> the end, I guess I only need collect my computer timestamp and not
> worry about the device timestamp when using the streamed data. There
> is also "command mode" in which I can connect via telnet and 'paste'
> the "*SRT" command to get temp and timestamp back. I dunno why paste
> must be used instead of typing the command, but that's telnet for ya I
> guess. However, now this only reports temp and no timestamp either.
>
> Fortunately timestamping on the internal logging of the device is
> fine, it's just not spewing it to me when I send it telnet or
> httpget.exe commands anymore.
>
> Found out my WGET is 1.8.2-15.3 in FC1, not recent enough to include
> --post-data=STRING option.
>
> Also, the -r means NO HTTP headers in their httpget.exe proggy... it's
> a raw mode of connection that I think support says won't work if you
> include any HTTP header communication.
>
> still pluggin away,
> David M.
>
>
> --- erik at underhanded.org wrote:
>
> > On Thu, Sep 23, 2004 at 12:30:05PM -0700, 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}
> > >
> > > Then I'm going to append the results onto to a txt file, or better
> > > yet,
> to
> > a
> > > database where I add a new row each time I grab results. Maybe
> > > LYNX is
> > another
> > > possible solution??
> > >
> > > The HTTPGET get proggy sends a command like this to retrieve output:
> > > httpget -r -S "*SRT\r" ip.ad.dr.es:1000 (where \r = carriage
> > > return termination character)
> >
> > (found with wget --help)
> >
> > GNU Wget 1.9.1
> > -s, --save-headers save the HTTP headers to file.
> > --post-data=STRING use the POST method; send STRING as the data.
> > --post-file=FILE use the POST method; send contents of FILE.
> >
> >
> > I don't believe wget saves headers by default (need to use -s), may
> > want to
>
> > check if you have wierd options in a wgetrc. I tend to just specify
> > everything on the commandline.
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
More information about the TriLUG
mailing list