title: How to download pdf file in ruby without .pdf in the link
body: <p>I need to download a pdf from a website which does not provide a link ending with (.pdf) using ruby. Manually, when i click on the link to download the pdf, it takes me to a new page and the dialog box to save/open the file appears after some time.</p>
  
  <p>Please help me in downloading the file.</p>
  
  <p><a href="http://www.lawcommission.gov.np/en/documents/prevailing-laws/constitution/Prevailing-Laws/Constitution/%E0%A4%A8%E0%A5%87%E0%A4%AA%E0%A4%BE%E0%A4%B2%E0%A4%95%E0%A5%8B-%E0%A4%85%E0%A4%A8%E0%A5%8D%E0%A4%A4%E0%A4%B0%E0%A4%BF%E0%A4%AE-%E0%A4%B8%E0%A4%82%E0%A4%B5%E0%A4%BF%E0%A4%A7%E0%A4%BE%E0%A4%A8-%E0%A5%A8%E0%A5%A6%E0%A5%AC%E0%A5%A9/" rel="nofollow">The link</a></p>