Python Forum

Full Version: Download file from xampp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all!
I'm trying to download a file (.zip) from a xampp website.

I tried different solutions to download the file, but the result is the same. The size of downloaded file is only 1Kb.

url = 'http://192.168.2.244/TrackingUpdater/updates/'  
urllib.request.urlretrieve(url, nameFile)  
url = 'http://192.168.2.244/TrackingUpdater/updates/'
with urllib.request.urlopen(url) as response, open(nameFile, 'wb') as out_file:
    try:shutil.copyfileobj(response, out_file)
I think the code is ok, is there a problem with xampp? How should I set it?

thank you

Sorry but I solved the problem. It was a little stupid....

I needed to add the file name in the url :/
What is the domain?
What is the data?