Morning All,
i'm trying to write code to use requests.post() but it keeps skipping the try and printing 'Error' with one particular line.
Many Thanks
i'm trying to write code to use requests.post() but it keeps skipping the try and printing 'Error' with one particular line.
try: url = http:\\11.11.11.11 # url changed for security print(url) myFile = open(<datafile>, 'rb') # This is the line i'm having issues with files = {'file': myFile} #print(files) r = requests.post(url, file=files) except: print('Error')any help would be greatly appreciated
Many Thanks