리눅스 curl

Jmnote (토론 | 기여)님의 2013년 12월 19일 (목) 01:39 판 (→‎같이 보기)
cURL, curl, libcurl
  • 원격서버(FTP, HTTP 등)에서 파일 받는 유틸[1]

1 설치 확인

[root@jmnote ~]# rpm -qa curl
curl-7.19.7-26.el6_1.2.x86_64

2 실행 예시

[root@jmnote ~]# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
문서 정보 보기 (-I)
[root@jmnote ~]# curl -I google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Sat, 06 Oct 2012 03:14:42 GMT
Expires: Mon, 05 Nov 2012 03:14:42 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN

3 같이 보기

4 주석

  1. A utility for getting files from remote servers (FTP, HTTP, and others)

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}