Re: Can't find the revision on this web site
ToddAndMargo via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On 1/27/24 09:22, Dan Fandrich via curl-users wrote: > On Sat, Jan 27, 2024 at 02:36:53AM -0800, ToddAndMargo via curl-users wrote: >> On this web site, >> https://www.eset.com/int/support/av-remover/ >> Firefox shows "Version: 1.6.7.0". >> >> How to I find that revision number with curl: > > The site uses dynamic HTML to build the page. You'll probably notice a brief > pause between the time the page first shows up on your browser and the download > links appear; that's the time where the page is requesting the list of > downloads including versions. > > If you go to the page in a browser and open the network tab in the developer > tools, you'll see at least a dozen GET requests and one of them of type JSON or > XHR looks like this: > > https://www.eset.com/int/support/av-remover/?tx_esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=15485&tx_esetdownloads_ajax%5Bplugin_id%5D=486706&tx_esetdownloads_ajax%5Bproduct%5D=47&type=13554&lang=en&tx_esetdownloads_ajax%5Bproduct%5D=47&tx_esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=15485&tx_esetdownloads_ajax%5Bplugin_id%5D=486706 > > That downloads a JSON document containing the different program versions and > platforms. Some JavaScript then builds an HTML table out of that, which is what > you can see on the page. > > Dan Hi Dan, Perfect. Thank you! -T $ curl -L 'https://www.eset.com/int/support/av-remover/?tx_esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=15485&tx_esetdownloads_ajax%5Bplugin_id%5D=486706&tx_esetdownloads_ajax%5Bproduct%5D=47&type=13554&lang=en&tx_esetdownloads_ajax%5Bproduct%5D=47&tx_esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=15485&tx_esetdownloads_ajax%5Bplugin_id%5D=486706' -o - | grep -i 'full_version":"1.6.7.0' -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html