python requests post --data-raw 는 어떻게 전달해야하나요?
조회수 1264회
curl --location --request POST 'https://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"encrypted":"U2FsdGVkX19ETWIFRzm0a/TA8s="
}'
linux에서는 이렇게 전달하는데 python으로 넘길 때는 requests.post(url, json=data_raw, headers=header) 이렇게 넘기니까 안 되더라구요. 혹시 다른 방법이 있을까요?
댓글 입력