소프트웨어/Unix
shell 에서 HTTPS, REST 테스트
야솔아빠
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>
반응형