Python Forum
Download file from xampp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download file from xampp
#1
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 :/
Reply
#2
What is the domain?
What is the data?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  M4S file extensin in Streaming video. How to download and use in Python Man_from_India 0 2,786 Aug-20-2020, 07:48 AM
Last Post: Man_from_India

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020