osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to pass username and password in the curl requests using requests python module


On 5/2/19 4:30 AM, Pradeep Patra wrote:
> Can anyone pls help in this regard?
> 

Something like this?:


requests.get('https://api.github.com/user', auth=('user', 'pass'))