Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

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 :/
Quote
#2
What is the domain?
What is the data?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  FTP download directories Sorkkaelain 9 1,472 Mar-15-2017, 09:24 PM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)