안녕하세요. KLDP에 많은걸을 얻어가는 초보자입니다. ^^;
웹페이지에 로그인하는 프로그램을 만들기 위해, 소켓으로 라이브러리
작성하다가, 그냥 curl로 작업하고 있는 중입니다.
https라는게 상당히 머리아프네요.
---------------------
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, "https://그냥저냥로긴페이지");
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easyhandle, CURLOPT_POSTFIELDS, "id=sss&pw=aaa");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
----------------------
이렇게 하면 페이지는 가져옵니다. 그런데 로그인 자체는 안되던데... 따로 post하는 뭐, 그런게 있나요?