"리눅스 curl"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
40번째 줄: 40번째 줄:
*[[curl 기본 인증 통과]]
*[[curl 기본 인증 통과]]
*[[curl 다이제스트 인증 통과]]
*[[curl 다이제스트 인증 통과]]
*[[wget]]
*[[리눅스 wget]]
*[[ab]]
*[[ab]]
*[[http-ping]] (윈도우)
*[[http-ping]] (윈도우)

2015년 3월 18일 (수) 18:39 판

1 개요

cURL, curl, libcurl
/usr/bin/curl
  • 원격서버(FTP, HTTP 등)에서 파일 받아 보여주는 도구[1]

2 설치 확인

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

3 실행예시 1: 기본

[root@zetawiki ~]# 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>

4 실행예시 2: 정보 보기

[root@zetawiki ~]# 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

5 같이 보기

6 주석

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

7 참고 자료