Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to know the server time

 
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
 
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).]
 
Shiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic