Skip to content
컴퓨터잡담
2009.06.30 15:37

curl로 다음 자동로그인 가능하다.

조회 수 28914 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

curl로 다음 자동로그인 가능하다.



$loginUrl = 'https://logins.daum.net/Mail-bin/login.cgi?dummy=1238466344458'; 
$login_data = 'enpw=비밀번호&id=아이디&pw=비밀번호&url=http://www.daum.net&webmsg=-1'; 
$cookie_nm = "./cookie.txt"; 

$ch = curl_init(); 
curl_setopt ($ch, CURLOPT_URL,$loginUrl); //접속할 URL 주소 
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
curl_setopt ($ch, CURLOPT_SSLVERSION,1); 
curl_setopt ($ch, CURLOPT_HEADER, 1); 
curl_setopt ($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_nm); 
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_nm); 
curl_setopt($ch, CURLOPT_POSTFIELDS, $login_data); 
curl_setopt ($ch, CURLOPT_TIMEOUT, 30); 
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
$result = curl_exec ($ch); 

curl_setopt ($ch, CURLOPT_URL,"http://www.daum.net/"); //접속할 URL 주소 
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_nm); 
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_nm); 
$result = curl_exec ($ch); 
curl_close ($ch); 
echo $result; 

로그인 후 댓글쓰기가 가능합니다.

?
  • ?
    jp 2009.08.13 05:40
    어라 제가 작성한거네요 ㅎ
  • ?
    디케 2009.08.13 17:25

    혹시 저한테 답변해주신분 맞으신가요? ^^;;

    도움 잘 받았습니다. ㅋㅋ;;


  1. 03
    Dec 2009
    16:53

    다른 윈도우 창 프로그램 제어

    Category컴퓨터잡담 Views37785
    Read More
  2. 30
    Oct 2013
    17:04

    ahk) autohotkey 엑셀(Excel)에서 행값 증가시키기

    CategoryAutoHotKey Views37413
    Read More
  3. 21
    Apr 2023
    20:10

    DiffusionWrapper has 859.52 M params.

    Category파이썬 Views37304
    Read More
  4. 22
    Feb 2012
    07:24

    Autohotkey) Find WM_COMMAND parameter with Winspector

    CategoryAutoHotKey Views35869
    Read More
  5. 30
    Jun 2009
    08:44

    자바스크립트/CSS 트리를 이용한 예제 프로그램 쉽게만들기

    Category컴퓨터잡담 Views35634
    Read More
  6. 30
    Jun 2009
    15:31

    .htaccess와 워터마킹을 이용한 이미지 링크 방지

    Category컴퓨터잡담 Views34918
    Read More
  7. 31
    Dec 2011
    17:18

    autohotkey) Virus?

    CategoryAutoHotKey Views34679
    Read More
  8. 30
    Oct 2013
    16:59

    ahk) autohotkey 글자 자르기 방법

    CategoryAutoHotKey Views34671
    Read More
  9. 08
    Oct 2013
    10:24

    IPTIME N904 모델에서 멀티캐스트 프로토콜(IGMP) 설정하는 방법

    Category컴퓨터잡담 Views34267
    Read More
  10. 18
    Sep 2012
    13:43

    옵티머스G 배터리 일체형은 절대 비추천합니다.

    Category컴퓨터잡담 Views34148
    Read More
  11. 30
    Nov 2009
    08:15

    TIME_WAIT 줄이기(소켓이 부족하여 프로세스 강제중단을 막기위해)

    Category컴퓨터잡담 Views34111
    Read More
  12. 05
    Aug 2009
    17:22

    네이버 많이 본 뉴스 PHP로 RSS 출력 만들기

    Category컴퓨터잡담 Views33674
    Read More
  13. 30
    Oct 2013
    17:11

    autohotkey) 오토핫키에서 자주쓰는 함수모음

    CategoryAutoHotKey Views33657
    Read More
  14. 31
    Jul 2013
    13:22

    autohotkey) 30분마다 자동으로 디스크 정리하기

    CategoryAutoHotKey Views33070
    Read More
  15. 20
    Feb 2013
    07:38

    C# - etrade api site 게시물

    CategoryVisual C++ Views32889
    Read More
  16. 30
    Jun 2009
    15:29

    CURL 을 이용한 GET/POST 값 넘기기

    Category컴퓨터잡담 Views32810
    Read More
  17. 20
    Oct 2009
    08:35

    PHP로 FTP 접속 / 업로드 / 다운로드 등의 컨트롤 소스

    Category컴퓨터잡담 Views32766
    Read More
  18. 14
    Jul 2022
    15:08

    특정 파일을 제외한 현재 디렉토리 내의 모든 파일을 삭제하는 배치파일

    Category컴퓨터잡담 Views32728
    Read More
  19. 30
    Jun 2009
    15:36

    현재 쿠키,세션 값 전부 보기

    Category컴퓨터잡담 Views32612
    Read More
  20. 30
    Oct 2013
    16:51

    ahk) 열려진 엑셀창의 값 불러오기

    CategoryAutoHotKey Views32526
    Read More
Board Pagination Prev 1 2 3 4 5 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소