I want to download a file from my server using the https protocol. How should I go about doing this? This is my basic code with http
response=requests.get('http://url',stream='True')
handle=open('dest_file.txt','wb')
for chunk in response.iter_content(chunk_size=512):
if chunk: # filter out keep-alive new chunks
handle.write(chunk)
handle.close()
can the requests module be used for https as well?
fileor a webpage? I guess if you want a file you will have to have a service on your server to send the data viahttpHow to FTP via HTTPS?