Paulmul
asked on
Query HTTP server
Hi,
is there any way in bash to query the round trip time to a http server? I have to use the http protocol so ping is no good. I have to compare this to ping. I thought wget might have something but I couldn't find what to use.
Thanks
is there any way in bash to query the round trip time to a http server? I have to use the http protocol so ping is no good. I have to compare this to ping. I thought wget might have something but I couldn't find what to use.
Thanks
ASKER
Can this be done in perl? I am using perl and bash for this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am also quite new to perl, I prefer it to C though
try curl, works great.
You can write a small program that sends a HTTP Get request to the server
and measures the response time
Its really very simple
All you need to do is open a socket, connect to the server port 80 (or whatever the
server is listening to), note the time, send the http get request, wait for response,
note down time, calculate difference and you have the round trip time.