this is an example of using the neocities api to upload a text file from a circuit python device

   
url1 = 'https://neocities.org/api/upload'
payload= '--CaseyCaseyCaseyCasey\r\nContent-Disposition: form-data; name="/file.txt"; filename="/file.txt"\r\n\r\n'+str(wet)'\r\n--CaseyCaseyCaseyCasey--\r\n'
headers={"Authorization": "Basic " + "1234567890", "Content-Type": 'multipart/form-data; boundary=CaseyCaseyCaseyCasey'}
response = requests.post(url1, data=payload, headers=headers)
print('post success')