The log files are easy to parse.  They're usually just a series of
whitespace delimited columns (can't recall if it's space, tab, or some
other seperator).

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele



-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Cowan
Sent: Wednesday, March 08, 2006 10:13 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] HTTP help


That is an option but is parsing the IIS log not a non-trivial affair??

I just wish I could do this on the client by parsing the DOM but if the
image was added via an external .js file then it will not be in the DOM
unfortunately.



[EMAIL PROTECTED]





>From: Patrick Steele <[EMAIL PROTECTED]>
>Reply-To: "Discussion of advanced .NET topics."
><ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
>To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
>Subject: Re: [ADVANCED-DOTNET] HTTP help
>Date: Wed, 8 Mar 2006 10:12:20 -0500
>
>What about having some automated process run IE and request the pages
>you want to test.  Then parse through your IIS logs and look for 404's.

>Kind of a round-about way to do it, but at least this way you leave the

>HTML parsing and HTTP requests to IE.
>
>--
>Patrick Steele
>Microsoft .NET MVP
>http://weblogs.asp.net/psteele
>
>
>
>-----Original Message-----
>From: Discussion of advanced .NET topics.
>[mailto:[EMAIL PROTECTED] On Behalf Of Paul Cowan
>Sent: Wednesday, March 08, 2006 9:58 AM
>To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
>Subject: Re: [ADVANCED-DOTNET] HTTP help
>
>
>Thanks Peter,
>
>It is a long and complicated story but as simply as I can put it, we
>have to ensure that a particular .jpg file is on a requested page.  My
>first thoughts were to use javascript to parse the DOM but we cannot
>guarantee that the element was rendered by an external .js file.
>
>That is the requirement put as simply as I can.
>
>We want to automate this process.  The Html that is coming back is not
>XHTML compliant or I would consider using the XmlHTTPRequest object.
>
>Can you think of a simpler way to achieve this than examining the
>HttpResponse.
>
>Thanks
>
>Paul
>
>
>
>[EMAIL PROTECTED]
>
>
>
>
>
> >From: Peter Ritchie <[EMAIL PROTECTED]>
> >Reply-To: "Discussion of advanced .NET topics."
> ><ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
> >To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> >Subject: Re: [ADVANCED-DOTNET] HTTP help
> >Date: Wed, 8 Mar 2006 09:49:08 -0500
> >
> >I assume you mean resources linked to via the likes of <img
> >href="Image1.jpg">.  Those "links" are retrieved as separate HTTP
> >requests; and whenever the browser feels like it.  There's no
> >guarantee
>
> >they'll be requested adjacent to the original page's request either.
> >
> >If you want to find out what dependant files page1.aspx links to
> >you'll
>
> >have to parse the HTML returned from page1.aspx looking for "link"
> >elements like IMG or LINK.
> >
> >Why do you need to do this?  I ask because it influences how you
> >would go about achieving this.
> >
> >On Wed, 8 Mar 2006 14:36:46 +0000, Paul Cowan <[EMAIL PROTECTED]>
> >wrote:
> >
> > >Hi all,
> > >
> > >Can anyone help me with the following requirements?  We want to
> > >parse
>
> > >an HTTP request for a web page and display all the constituent
> > >parts that
> >make
> > >up the web page. That is I want to display all the additional
> > >requests
> >that
> > >are made to make up the whole page (i.e. css, images and javascript
> >files).
> > >Say I make a request for page1.aspx then the system would log that
> > >it
>
> > >is made up of the following resources:
> > >
> > >Default.css
> > >Modern.css
> > >Image1.jpg
> > >Script.js
> > >Etc., etc.
> > >
> > >I have no idea how to achieve this, does anybody know??
> >
> >===================================
> >This list is hosted by DevelopMentorR  http://www.develop.com
> >
> >View archives and manage your subscription(s) at
> >http://discuss.develop.com
>
>===================================
>This list is hosted by DevelopMentorR  http://www.develop.com
>
>View archives and manage your subscription(s) at
>http://discuss.develop.com
>
>===================================
>This list is hosted by DevelopMentorR  http://www.develop.com
>
>View archives and manage your subscription(s) at
>http://discuss.develop.com

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to