Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download file from xampp
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 = ''  
urllib.request.urlretrieve(url, nameFile)  
url = ''
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?

Top Page

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

Forum Jump:

Users browsing this thread: 1 Guest(s)