Well, if this is http, there really is no way to tell how much of a file 
was downloaded by a client, unless you write the webserver part yourself. 
Web2py never sees if a file is completely downloaded or not. Why are you 
using HTTP if you need to be absolutely sure that the file transferred? 
Have you looked at Zmodem or Kermit?

On Sunday, September 21, 2014 8:11:25 PM UTC-7, Aldo Bassanini wrote:
>
> Hello everyone.
> Is there any way to control the final status of the response.stream 
> function?
>
> I need to serve a small file to a client application (the client app uses 
> wget, not a browser), but I wish to know if the client successfully 
> downloaded the file, in order to update some server-side data.
>
> The way that I am thinking to achieve this, is programming the client 
> application (a shell script) to GET a second URL (sending a session-id or 
> something like that) from the server, after downloading the file, but this 
> means, that I have to develop some file validation logic to verifiy the 
> correct downloading (md5suming? or alikes) in the client, that I prefer to 
> avoid, since the client has a very small environment (OpenWrt's Busybox 
> Shell) and very small CPU and RAM.
>
>
> Thank's in advance and any suggestions will be appreciated
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to