Repository: conan-io/conan

Issue:
Please support Verify=False option for tools.get() as is currently supported for tools.download()
To help us debug your issue please explain:

- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
- [1.8.4] I've specified the Conan version, operating system version and any tool that can be relevant.
- [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.




Discussion:

Resolving patch:
diff --git a/conans/client/tools/net.py b/conans/client/tools/net.py
--- a/conans/client/tools/net.py
+++ b/conans/client/tools/net.py
@@ -7,14 +7,16 @@
 
 
 def get(url, md5='', sha1='', sha256='', destination=".", filename="", keep_permissions=False,
-        pattern=None, requester=None, output=None):
+        pattern=None, requester=None, output=None, verify=True, retry=None, retry_wait=None,
+        overwrite=False, auth=None, headers=None):
     """ high level downloader + unzipper + (optional hash checker) + delete temporary zip
     """
     if not filename and ("?" in url or "=" in url):
         raise ConanException("Cannot deduce file name form url. Use 'filename' parameter.")
 
     filename = filename or os.path.basename(url)
-    download(url, filename, out=output, requester=requester)
+    download(url, filename, out=output, requester=requester, verify=verify, retry=retry,
+             retry_wait=retry_wait, overwrite=overwrite, auth=auth, headers=headers)
 
     if md5:
         check_md5(filename, md5)
@@ -47,8 +49,14 @@ def ftp_download(ip, filename, login='', password=''):
             pass
 
 
-def download(url, filename, verify=True, out=None, retry=2, retry_wait=5, overwrite=False,
+def download(url, filename, verify=True, out=None, retry=None, retry_wait=None, overwrite=False,
              auth=None, headers=None, requester=None):
+
+    if retry is None:
+        retry = 2
+    if retry_wait is None:
+        retry_wait = 5
+
     out = default_output(out, 'conans.client.tools.net.download')
     requester = default_requester(requester, 'conans.client.tools.net.download')
 


Test patch:
diff --git a/conans/test/util/tools_test.py b/conans/test/util/tools_test.py
--- a/conans/test/util/tools_test.py
+++ b/conans/test/util/tools_test.py
@@ -1279,6 +1279,12 @@ def get_file2():
             self.assertEquals(request.query["file"], "1")
             return static_file(os.path.basename(file_path), root=os.path.dirname(file_path))
 
+        @thread.server.get("/error_url")
+        def error_url():
+            from bottle import response
+            response.status = 500
+            return 'This always fail'
+
         thread.run_server()
 
         out = TestBufferConanOutput()
@@ -1304,6 +1310,14 @@ def get_file2():
             self.assertTrue(os.path.exists("test_folder"))
         thread.stop()
 
+        with self.assertRaisesRegexp(ConanException, "Error"):
+            tools.get("http://localhost:%s/error_url" % thread.port,
+                      filename="fake_sample.tar.gz", requester=requests, output=out, verify=False,
+                      retry=3, retry_wait=0)
+
+        # Not found error
+        self.assertEquals(str(out).count("Waiting 0 seconds to retry..."), 2)
+
     def unix_to_dos_unit_test(self):
 
         def save_file(contents):