title: 403 error in downloading with URL but works fine in browsers
body: <p>I'm developing a small test to download an apk from apkpure using java.
  The URL that I have, returns a 403. But on the browser, it works fine. All solutions I tried did not work.</p>
  <p>Here is the code:</p>
  <pre class="lang-java prettyprint-override"><code>URL url = new URL(TheUrl);
  try (InputStream in = url.openStream()) {
      Files.copy(in, Paths.get(apkPathInFolder), StandardCopyOption.REPLACE_EXISTING);
      System.out.println(&quot;test ok&quot;);
  } catch (IOException e) {
      // handle exception
      System.out.println(e);
  }
  </code></pre>
  <p>How could I handle it, please ?</p>
  <p>Thanks</p>
  <p>An example of <a href="https://download.apkpure.com/b/APK/Y29tLnRlbmNlbnQuaWdfMTU1MjNfYmFhM2U4Njk?_fn=UFVCRyBNT0JJTEUgUkVTSVNUQU5DRV92MS42LjBfYXBrcHVyZS5jb20uYXBr&amp;as=1e5ab5a5ef235ad0674f6ed4f7ff59576150d1cd&amp;ai=33533981&amp;at=1632686421&amp;_sa=ai%2Cat&amp;k=06ee0e1f9f5964c4edc23905822a9c8861537455&amp;_p=Y29tLnRlbmNlbnQuaWc&amp;c=2%7CGAME_ACTION%7CZGV2PVBST1hJTUElMjBCRVRBJnQ9YXBrJnM9MTEzMjQ5NjAwMiZ2bj0xLjYuMCZ2Yz0xNTUyMyZodD1lMDE&amp;ht=e01" rel="nofollow noreferrer">the URL</a> I have as input.</p>