Curl 이란?

2015. 12. 3. 17:33OS/Linux&Unix

반응형

출처 : http://jokergt.tistory.com/83


그냥 사용했었는데 한번 찾아보았다ㅋㅋㅋ 이런 탄생과 발전의 비화가 있었다뉘~



참고 사항!

아래의 옵션을 사용하여 체킹할 수 있다.

ex) -e, --referer       Referer URL (H) 

curl "http://www.themungu.co.kr/" -e "http://www.daum.net"


결과 : www.daum.net이 막혀있는 것을 알수가 있다..ㅠ.ㅠ..개슬픔..

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>403 Forbidden</TITLE>

</HEAD><BODY>

<H1>Forbidden</H1>

You don't have permission to access /

on this server.<P>

</BODY></HTML>


curl "http://www.themungu.co.kr/" -e "http://www.naver.com"

네이버는 잘가져온다..ㅠ_ㅠ..

<html>

<head>

<title>네이버</title>

</head>

<frameset rows="1*, 1" border="0">

<frame src="./main/main.html?PHPSESSID=9d7fd06cb57d9cb85ae46c6f87ef9dd0" scrolling="auto" marginwidth="0" marginheight="0">

<frame src="f.html?PHPSESSID=9d7fd06cb57d9cb85ae46c6f87ef9dd0" scrolling="no" marginwidth="0" marginheight="0">

<noframes>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

</body>

</noframes>

</frameset>


</html>



반응형