Re: Website Status
- From: andrewthommo@xxxxxxxxx
- Date: 28 Jun 2006 07:59:52 -0700
trpost@xxxxxxxxx wrote:
I am looking to create a small Java application that will take a URL
and display the status
*
as well as some statistics about the page
download speed
This is especially arbitrary information that depends
on a lot of factors, including the user's connection speed,
local caching, network(s) usage and host server speed. *
..and page size,
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLConnection.html
...is your friend for the page size, as well as other
useful information.
...but am having trouble getting started.
* ..but URLconnectrion also has a method to getContent,
so if you time how long it takes to get the content, you can
divide that time into the size to get an idea of the download
speed of this page for this user (at this moment in time).
Also, attempting to openConnection() or getInputStream()
should tell youthe page status as far as 'available/off-line' -
but be careful as the 'page found' might be a '404' status
(page not found) web-page.
HTH
Andrew T.
.
- References:
- Website Status
- From: trpost
- Website Status
- Prev by Date: Re: building a meta search engine
- Next by Date: Re: ZoneView or ways of dealing with large objects?
- Previous by thread: Website Status
- Next by thread: beginner to Java
- Index(es):