본문 바로가기
기록/Python

[Python] 파이썬 requests.post 에 header 추가

by 자임 2022. 10. 14.
# url
url = '[url]'

# headers
headers = {
	'X-Auth-Token': accessKey
}

# param
data = {
		'title': title,
		'content': content
		}

response = requests.post(url, headers=headers, data=data).text


참고 : https://itstudy402.tistory.com/35




참고 : https://itstudy402.tistory.com/35