title: Download OneDrive file from cURL since they've changed their URL's construction
body: <p>here's the problem i have.Before OneDrive changed the url's it was easy to force a file to be downloaded from cURL, but now since they've changed their URL's construction i can't use the previous approach of replacing redir? with download?. That's how they used to be constructed:</p>
  
  <pre><code>https://onedrive.live.com/redir?resid=
  </code></pre>
  
  <p>To make it start downloading immediately we just had to replace the redir with download like this</p>
  
  <pre><code>https://onedrive.live.com/download?resid=
  </code></pre>
  
  <p>and that was fixing it at all, but now the url's are like this: </p>
  
  <pre><code>https://1drv.ms/u/s!AsdMSpdm_dmsadMSda
  </code></pre>
  
  <p>So, my question is how can i download the file from cURL, i cannot do that even with CURLOPT_FOLLOWLOCATION, it is only working if the file is forced to be downloaded.
  Thanks in advance!</p>