[sword-devel] HTTP Transport support (was: Remote Module Repository Wiki)

DM Smith dmsmith at crosswire.org
Mon Nov 8 05:09:36 MST 2010


InstallSize doesn't give the download size. HEAD does. For compressed modules and image modules these are fairly close. InstallSize is also fairly recent and not all confs have it. So if our software did use it, it'd have too fall back to another way when not there. 


Doing HEAD on all the parts and summing it is a bother and might involve many latencies (eg mage modules) but is singular for a zip and thus no big deal. 

In Him,
DM 

Sent from my phone

On Nov 8, 2010, at 6:38 AM, Jonathan Morgan <jonmmorgan at gmail.com> wrote:

> Just recall that HEAD presumably takes another roundtrip to the server, adding latency, while InstallSize just requires you to have the conf files you have probably already got.  (In reality, it's probably not that much of a problem, but I'm obviously feeling paranoid about latency today ;) ).
> 
> Jon
> 
> On Mon, Nov 8, 2010 at 12:35 AM, Weston Ruter <westonruter at gmail.com> wrote:
> Yes, do a HEAD request and then look at the Content-Length header.
> 
> 
> On Sun, Nov 7, 2010 at 1:11 PM, DM Smith <dmsmith at crosswire.org> wrote:
> 
> 
> On Nov 6, 2010, at 10:22 PM, Nic Carter <niccarter at mac.com> wrote:
> 
> > But, I believe there is a way of telling the size of a file being retrieved via HTTP GET?  hopefully we could use that as well?  :)
> IIRC, it's HEAD. JSword uses it. Works well.
> In Him,
> DM
> 
> >From my phone.
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
> 
> 
> 
> -- 
> Weston Ruter
> http://weston.ruter.net/
> @westonruter - Google Profile
> 
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20101108/111c9050/attachment-0001.html>


More information about the sword-devel mailing list