Search found 2 matches

Thu Apr 23, 2020 8:28 pm
Replies: 2
Views: 10204

Re: Uploading from requests library in python

Oh my goodness! I was close! I got it all working now. I'll have to make a post or something to share the project i'm working on, I think its kinda neat.
Thanks so much Arkasha
Thu Apr 23, 2020 2:57 pm
Replies: 2
Views: 10204

Uploading from requests library in python

url = 'https://api.wigle.net/api/v2/file/upload' data = {'file': (outfile, 'multipart/form-data', {'Expires': '0'})} response = requests.post(url, files=data, headers={'Authorization': 'Basic blahblahblah'}) print(" ") response = response.text print(response) (sry for bad formatting not sure how to...

Go to advanced search