BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} http content verification
> > Hiya all :)
> > First I wanted to say "Thank you, Sean" for the great functionality that bb
> > provides :)))
Likewise. I've been using BB since v1.00 and have found it extremely
useful. Thanks!
> > I implemented it successfully ..thanks again :)
>
> You may now be called "brother"!
Hi brothers!
> > I'm curious if we can do content verification with it. Most of our sites are
> > dynamically built from databases and I'd like to know if the right content
> > is showing. Any ideas ? I guessed it would be some modification of
> > bb-network.sh ...but didn't have much time to dig deeper. Maybe you guys
> > have experience with this.
>
> Interesting. The problem I could see here is twofold:
>
> 1. How do you know what's coming back is correct?
> 2. The current http tests don't return a whole page.
>
> In response to #1, I don't know how you could tell your sites
> are OK. Simple logic would dictate that you 'grep' for some
> keyword, or something. provided you can determine an OKness
> test, bb-network.sh has an HTTP test around line 365:
I have a number of sites that I also need to make sure that the contents
are showing up ok. With regard to #1 above, I would suggest taking a
snapshot of the page (with the wanted content), then do a "fuzzy" diff with
subsequent tests. Something like a diff command that understands that we
only want to compare lines 3 through 15, then lines 20 through 30, ignoring
differences in the rest of the file.
It might be possible to do this by writing a Perl wrapper around diff.
I'll take a crack at it when I get some time (yeah, right :-)).
Tin Le
----
Net Images - Premier Web Presence Provider http://www.netimages.com/~tin
Internet Security and Firewall Consulting
Tin Le - tin@netimages.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please send mail for the mailing list to: bb@taex001.tamu.edu
To [un]subscribe to this list, send e-mail to majordomo@taex001.tamu.edu
with [un]subscribe bb in the BODY of the message.
Please contact the mailing-list-owner as: bb-owner@taex001.tamu.edu
Home |
Main Index |
Thread Index