login about faq

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

asked Aug 03 '12 at 22:26

Ash's gravatar image

Ash
6111


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.

link

answered Aug 06 '12 at 08:42

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×15
×8
×1

Asked: Aug 03 '12 at 22:26

Seen: 1,398 times

Last updated: Aug 06 '12 at 08:42

powered by OSQA