• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to know the server time

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sir/Madam
I am working on a standalone project which is to simulate various clients on a machine that hits the aprticular URl .
I am required to first take the input from the client ina form that is developed in Java(Swings).
This form will spawn out various Threads each in turn hit the URL.Kindly let me know the way by which i can know the Web Server time when the thread hits the URL.

In general is there any way out to know the webserver time when the server started/completed /processed the request/responce from the client thru the Java console

rgds
Amitabh Sinha
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the HTTP server is configured to let you know the date, you have in the HTTP header a field called Date giving the date when it proceesses the request.
It is at a low level that you can have this information.
Ex :
Date: Tue, 15 Nov 1994 08:12:31 GMT
see the protocol spec at ftp://ftp.isi.edu/in-notes/rfc2616.txt
Page 124
Laurent Leonard
Laurent.Leonard@belgique.com

[This message has been edited by Laurent Leonard (edited May 23, 2001).]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic