Search found 2 matches

Thu Apr 23, 2020 8:28 pm
Replies: 3
Views: 27399

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: 3
Views: 27399

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 s...

Go to advanced search