주 메뉴 열기

wwiki β

바뀜

Curl

845 바이트 추가됨, 2023년 4월 20일 (목) 00:29
편집 요약 없음
== 사용법 ==Usage: curl [options...] <url> === 기본 옵션 ===
-H, --header <header/@file> Pass custom header(s) to server. (ex: -H 'X-Naver-Client-Id: xxxx')
=== -L, --location ===
(HTTP) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place.
 
=== -d, --data <nowiki><data></nowiki> ===
(HTTP MQTT) Sends the specified data in a POST request to the HTTP server, in the same way that a browser does when a user has filled in an HTML form and presses the submit button.
 
If you start the data with the letter @, the rest should be a file name to read the data from, or - if you want curl to read the data from stdin.
 
Examples:
 curl -d "name=curl" <nowiki>https://example.com</nowiki>
 curl -d "name=curl" -d "tool=cmdline" <nowiki>https://example.com</nowiki>
 curl -d @filename <nowiki>https://example.com</nowiki>
 
=== --data-binary <nowiki><data></nowiki> ===
(HTTP) This posts data exactly as specified with no extra processing whatsoever.
 
 
Example:
 curl --data-binary @filename <nowiki>https://example.com</nowiki>
== 예시 ==
편집
2,431