Projects / HTTP Time Protocol

HTTP Time Protocol

HTTP Time Protocol is a time synchronization tool that uses Web server responses (HTTP headers) instead of the NTP protocol. If you are behind a corporate firewall, NAT device, or proxy server, HTP will still be able to synchronize the time. For high precision time synchronization, use ntpd.

Tags Internet Web Networking Time Synchronization
Licenses Freeware
Operating Systems Windows Windows Cygwin Unix POSIX Linux
Implementation Perl C

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  13 Oct 2008 21:08
  • Rrelease-after

Changes: A memory issue has been fixed.

  • Rrelease-mid
  •  02 Sep 2008 21:06
  • Rrelease-after

Changes: A logic error that rendered 1.0.2 broken has been fixed.

  • Rrelease-mid
  •  01 Sep 2008 22:48
  • Rrelease-after

Changes: A buffer overflow has been fixed.

  • Rrelease-mid
  •  28 Apr 2008 13:19
  • Rrelease-after

Changes: This release adds "burst mode" (-b) to enhance accuracy. The debug output has been extended. Potential buffer overflow vulnerabilities have been fixed. usleep has been replaced by nanosleep (which is more portable). Debian support is included.

  • Rrelease-mid
  •  31 Oct 2007 09:48
  • Rrelease-after

Changes: This release fixes an issue with the clock being set incorrectly on Microsoft Windows during Daylight Savings Time.

Rss Recent comments

Rcomment-before 11 Jan 2005 12:23 Rcomment-trans rkeene Rcomment-after

Re: Nice idea!

> But using this snippet works fine, too

> ;-)

>

> date -s "`lynx -dump -head

> http://www.kernel.org |grep 'Date:'|awk

> -F': ' '{print $2}'`"

HTP (atleast the C version) does basic statistical analysis to use multiple sources to create a more accurate time.

Rcomment-before 08 Nov 2004 09:15 Rcomment-trans evervest Rcomment-after

Re: Nice idea!

> I suppose if you ran that every minute
> you may not have any jumps, but the
> feature of smooth adjustment is good for
> less frequent polling.

The C version of htpd is doing smooth adjustments (since version 0.3.4) in stead of time steps, simular to ntpd.

Rcomment-before 07 Nov 2004 21:16 Rcomment-trans jrexilius Rcomment-after

Re: Nice idea!

> But using this snippet works fine, too

> ;-)

>

> date -s "`lynx -dump -head

> http://www.kernel.org |grep 'Date:'|awk

> -F': ' '{print $2}'`"

I suppose if you ran that every minute you may not have any jumps, but the feature of smooth adjustment is good for less frequent polling.

Although, wouldn't an HTTP extension to the rdate code be effective?

Rcomment-before 27 Aug 2004 15:28 Rcomment-trans evervest Rcomment-after

Re: Nice idea!
date -s "`lynx -dump -head http://www.kernel.org|awk -F': ' '/Date: / {print $2}'`"
to make it even shorter

Rcomment-before 27 Aug 2004 13:13 Rcomment-trans evervest Rcomment-after

Re: Nice idea!
Agreed, but you don't do boundary checking and your version is less friendly for non-programmers.

You are more than welcome to write a slick version in C.

It's the idea that counts :)

Bfadffe09407017387e38cd0f0ff869b_thumb

Project Spotlight

Y.A.P.R.M.

A powerful modeller designed to seamlessly interact with POVRAY.

No-screenshot

Project Spotlight

netrik

An advanced text mode WWW browser.