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

38번째 줄: 38번째 줄:


==같이 보기==
==같이 보기==
*[[우분투 curl 설치]]
*[[curl 기본 인증 통과]]
*[[curl 기본 인증 통과]]
*[[curl 다이제스트 인증 통과]]
*[[curl 다이제스트 인증 통과]]

2015년 12월 14일 (월) 11:36 판

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 참고 자료