0
В следующем вызове Python, как мне получить User и передать из Python HTTPBasicAuth на стороне веб-API C#?В C# Web API - как я могу получить User и передать из Python HTTPBasicAuth
from requests.auth import HTTPBasicAuth
s = requests.Session()
# Make the initial authentication request from a session object
s.get('https://omg.wtf/user', auth=HTTPBasicAuth('user', 'pass'))
# All subsequent requests from that session will include any cookies set in the initial response
r = s.get('http://omg.wtf/911')
mmmm - не найти его еще –
Должно быть в {Request.Headers ["Авторизация"]} –