EldoS | Feel safer!

Software components for data protection, secure storage and transfer

HTTPS OnProgress behavior

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#31321
Posted: 11/05/2014 05:55:09
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
I have a problem with behavior of HTTPS client, event OnProgress. I get this output when I call one HTTPS->Get request. Why is in output current 0, current 200 and current 0?

Current 0 Total 200 (05.11.2014 12:52:37)
Current 200 Total 200 (05.11.2014 12:52:37)
Current 0 Total 595284 (05.11.2014 12:53:13)
Current 3789 Total 595284 (05.11.2014 12:53:13)
Current 6893 Total 595284 (05.11.2014 12:53:13)
Current 23277 Total 595284 (05.11.2014 12:53:13)
Current 39661 Total 595284 (05.11.2014 12:53:13)
Current 47713 Total 595284 (05.11.2014 12:53:13)
Current 64097 Total 595284 (05.11.2014 12:53:13)
Current 65229 Total 595284 (05.11.2014 12:53:13)
Current 81613 Total 595284 (05.11.2014 12:53:13)
Current 97997 Total 595284 (05.11.2014 12:53:13)
Current 114381 Total 595284 (05.11.2014 12:53:13)
Current 130765 Total 595284 (05.11.2014 12:53:13)
Current 147149 Total 595284 (05.11.2014 12:53:13)
Current 163533 Total 595284 (05.11.2014 12:53:13)
Current 179917 Total 595284 (05.11.2014 12:53:13)
Current 196301 Total 595284 (05.11.2014 12:53:13)
Current 212685 Total 595284 (05.11.2014 12:53:13)
Current 229069 Total 595284 (05.11.2014 12:53:13)
Current 245453 Total 595284 (05.11.2014 12:53:13)
Current 261837 Total 595284 (05.11.2014 12:53:13)
Current 278221 Total 595284 (05.11.2014 12:53:13)
Current 294605 Total 595284 (05.11.2014 12:53:13)
Current 310989 Total 595284 (05.11.2014 12:53:13)
Current 327373 Total 595284 (05.11.2014 12:53:13)
Current 343757 Total 595284 (05.11.2014 12:53:13)
Current 360141 Total 595284 (05.11.2014 12:53:13)
Current 376525 Total 595284 (05.11.2014 12:53:13)
Current 392909 Total 595284 (05.11.2014 12:53:13)
Current 409293 Total 595284 (05.11.2014 12:53:13)
Current 425677 Total 595284 (05.11.2014 12:53:13)
Current 442061 Total 595284 (05.11.2014 12:53:13)
Current 458445 Total 595284 (05.11.2014 12:53:13)
Current 474829 Total 595284 (05.11.2014 12:53:13)
Current 491213 Total 595284 (05.11.2014 12:53:13)
Current 507597 Total 595284 (05.11.2014 12:53:13)
Current 523981 Total 595284 (05.11.2014 12:53:13)
Current 540365 Total 595284 (05.11.2014 12:53:13)
Current 556749 Total 595284 (05.11.2014 12:53:13)
Current 573133 Total 595284 (05.11.2014 12:53:13)
Current 589517 Total 595284 (05.11.2014 12:53:13)
Current 595284 Total 595284 (05.11.2014 12:53:13)

Thanks
#31322
Posted: 11/05/2014 06:00:41
by Eugene Mayevski (EldoS Corp.)

Most likely the original resource redirected the request to the actual file. You can use our HTTPGet sample to see what's sent and what's received from the server.


Sincerely yours
Eugene Mayevski
#31325
Posted: 11/05/2014 06:29:11
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Hi,
how can I get send and receive data. Is possible to know which data are sended and which are received? In any properties?
#31332
Posted: 11/05/2014 07:12:54
by Eugene Mayevski (EldoS Corp.)

My colleague has reminded me that OnProgress might be called for the data being sent (including request) as well.

In any case you have OnReceivedHeaders event which is a "separator" between response headers and response body. If you need to show the progress of the data transfer, you can report only those events that happen after OnReceivedHeaders event .


Sincerely yours
Eugene Mayevski
#31338
Posted: 11/05/2014 07:31:06
by Zdenek Mukensnabl (Priority Standard support level)
Joined: 09/05/2012
Posts: 15

Thank you, that's right what I want, progress only data. Thanks.
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

Topic viewed 522 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!