• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to know the server time

 
Amitabh Sinha55555
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
 
Laurent Leonard
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic