<div dir="ltr">The SHA list sounds great. Thanks for that. I notice that 4.10 is not there? Is it not considered "stable" officially?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 4:50 AM Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 22/01/20 5:30 pm, Justin Michael Schwartzbeck wrote:<br>
> Hi Amos, thanks for replying.<br>
> <br>
> So I guess maybe I need to narrow this down a little bit more. Is there<br>
> some programmatic way that I can get the *latest stable release*<br>
> *version* and *source download link*?<br>
> Right now I can do this by navigating to the downloads page:<br>
> <a href="http://www.squid-cache.org/Versions/" rel="noreferrer" target="_blank">http://www.squid-cache.org/Versions/</a><br>
> <br>
> Scroll to "Stable Versions" under source code packages, and see that<br>
> 4.10 is the latest, along with a link.<br>
> I guess I could write a script to parse the HTML on that page and find<br>
> this information, but that is rather clunky, and if the page format ever<br>
> changes then my script will be broken. Is there another way that you are<br>
> aware of?<br>
<br>
There are several ways.<br>
<br>
1) You can fetch the FTP directory listing from<br>
<<a href="ftp://ftp.squid-cache.org/pub/squid/" rel="noreferrer" target="_blank">ftp://ftp.squid-cache.org/pub/squid/</a>><br>
<br>
<br>
2) You can fetch the checksums file from that directory<br>
<<a href="ftp://ftp.squid-cache.org/pub/squid/sha1s.txt" rel="noreferrer" target="_blank">ftp://ftp.squid-cache.org/pub/squid/sha1s.txt</a>> and process it rather<br>
than the directory listing. This is sometimes easier for HTTP mirrors of<br>
the FTP service.<br>
<br>
<br>
Those contain only the latest 2 releases from each series. This way you<br>
can track when we change stable series - though manual review is advised<br>
at the changeover, so you may want to make that part just a notice for<br>
attention rather than an auto-build.<br>
<br>
<br>
Any permanent URLs you need linking back to the website for HTTP<br>
download, docs, or FTP archive (all released tarballs) can be<br>
synthesized from the version number.<br>
<br>
<br>
Amos<br>
</blockquote></div>