skip to Main Content

I need to download a package via command line, but the page forces you to press an accept license button to start the download. Is there a way to get around that requirement with wget or curl?

https://bintray.com/jfrog/xray/download_file?file_path=xray-centos-2.11.0.tar.gz

2

Answers


  1. Even finding the real URL to download the file on akamai, it seems complicated to generate the proper REQUEST_URI, because there’s an EPOCH time in the exp parameter, and if you modify it, it will return a 403 forbidden.

    And like Barmar said in comments, to figure out how to request the file, you have to understand what do the javascript on the page and do it programmatically.

    The simplest solution (apart if you successfully do what I explain) is to code with and to mimic what a human do: click on the button, etc…

    Login or Signup to reply.
  2. Just add the parameter “agree=true” to the URL.

    wget "https://bintray.com/jfrog/xray/download_file?agree=true&file_path=xray-centos-2.11.0.tar.gz"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search