Download file from xampp - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Networking (https://python-forum.io/forum-12.html) +--- Thread: Download file from xampp (/thread-10172.html) |
Download file from xampp - Guybrush - May-16-2018 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 :/ RE: Download file from xampp - Larz60+ - May-16-2018 What is the domain? What is the data? |