Forums Register Login

How to know the server time

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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).]
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 664 times.
Similar Threads
Reading parameters in Servlet passed from Client
Getting SSL handshake exception during hitting https request to an external server
Large JSP Files
Problem in logging in web application
ganging up multiple submissions into one post
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:20:20.