Archived Forum Post

Index of archived forum posts

Question:

Actual connect Time & request Time using the HTTP component

Aug 06 '12 at 08:42

Hi,

How do I extract the actual time take to connect & request using the HTTP component? I've noticed that the information is present in error messages..lol.

For Eg: This is from some error message I found in this forum (http://www.chilkatforum.com/questions/304/http-getpost-synchronous-request-issue)

Connected
--httpConnect
connectTime1: Elapsed time: 2184 millisec
Not auto-adding cookies.
sendRequestTime: Elapsed time: 0 millisec
---- Reading HTTP Response ----

As u can see, the time taken to connect is there.

What I would like to know is how to get that data when there are no errors?

Thanks!

Oh yes, btw,..using a TimeSpan obj is not practical as I'm using async http with sleeps to easy loads.

Cheers, Ash


Accepted Answer

Information about elapsed times were added to the LastErrorText to make it helpful in debugging to understand where time is being taken when an HTTP request takes more time than anticipated. The LastErrorText always contains this information, regardless of success or failure. I'm sorry to say that the information is not available via any other methods or properties.