Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Http post request basic authentication
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Http post request basic authentication

by stevenquinn on Sun Aug 13, 2017 2:11 pm

I'm trying to do a http post request with basic authentication. It looks like I might be able to use sockets to build a request but I was wondering if there was an easier way, something like the following:

Code: Select all | TOGGLE FULL SIZE
requests.post(url, post_fields, auth=(self.accountSid, self.accountToken))


Does that exist in circuit/micro python?

stevenquinn
 
Posts: 19
Joined: Sun Mar 26, 2017 1:24 am

Re: Http post request basic authentication

by tannewt on Sun Aug 13, 2017 4:01 pm

There is a urequests module for MicroPython but I haven't used it myself. Try looking for that to begin with.

Please post back here with what you find.

Thanks,
Scott

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.