You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Lawrence M. Bates (JIRA)" <ji...@apache.org> on 2009/01/05 18:35:44 UTC

[jira] Updated: (HTTPCLIENT-812) Would like to record and then retrieve the time, in ms, when an "http get" request is sent and likewise when the first byte of the response is received.

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lawrence M. Bates updated HTTPCLIENT-812:
-----------------------------------------

    Attachment: HttpParser.java
                HttpMethodBase.java

3.0.1 HttpMethodBase.java, with time request sent modifications.
3.0.1 HttpParser.java, with time response received modifications.



> Would like to record and then retrieve the time, in ms,  when an "http get" request is sent and likewise when the first byte of the response is received.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-812
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-812
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>         Environment: Windows XP, Java 1.6.0_03, Tomcat 6
>            Reporter: Lawrence M. Bates
>            Priority: Minor
>         Attachments: HttpMethodBase.java, HttpParser.java
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Would like to record and then retrieve the time, in ms,  when an "http get" request is sent and likewise when the first byte of the response is received.
> Downloaded the source code for commons-httpclient-3.0.1.  I built a custom commons-httpclient-3.0.1.jar where org.apache.commons.httpclient.HttpMethodBase records the time an "http get" request is first sent (execute method) , along with adding getters and setters.  Also modified org.apache.commons.httpclient.HttpParser to record, get, and set the time that the first byte of the response is received.
> This non-standard feature allows us in our project to log and audit how long it's taking the targeted server to respond to our requests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org