상세 컨텐츠

본문 제목

shell 에서 HTTPS, REST 테스트

소프트웨어/Unix

by 야솔아빠 2016. 6. 17. 11:03

본문

반응형

curl 명령을 이용하여 command shell 에서 HTTP, HTTPS, REST 테스트



-k 옵션은 Authentication ignore 하는 옵션


$ curl -X POST -k -H "Content-Type: application/xml" -d "<CUSTOMER> <customer_id>83222</customer_id> <name>Mr. INHO</name> <standard>S</e>29</age> <sex>F</sex></CUSTOMER>" https://xxx.xxx.xxx.51/inho/app/registration/customer


아래는 Response


<?xml version="1.0" encoding="UTF-8"?><CUSTOMER><customer_id>f79fd21d-ea51-4b00-9d74-02545eb3b96d</customer_id><name>Mr. INHO</name><standard>S</standard><age>29</age><sex>F</sex></CUSTOMER>


반응형

관련글 더보기

댓글 영역