0
파이썬에서 curl
-d
옵션을 사용하여 전달 된 데이터를 읽으려고합니다.Curl에서 python으로 --data가 전달한 데이터를 읽는 방법?
데이터는 JSON에 내가
request.get_json()
request.json.get('title')
--data
'{"title":"foobar","body": "This body has both "double" and 'single' quotes"}'
컬 -k -i -X POST -H : --data-진 '{"제목 ","콘텐츠 형식 : 응용 프로그램/JSON "여기
은 예입니다 body ":"이 몸체에는 "double"과 "single"따옴표가 모두 있습니다. "} '-L Xyzwus-west-2.compute.amazonaws.com/test –오류를 게시하십시오. – ayushgp