티스토리 뷰

앞글에 이어서..

분명히 될지 알았는데 안되서 크롬의 network를 분석하기로 했다.

All 을 클릭해보면


좌측에서 login.do 를 클릭해보면


    1. Request URL:
      https://www.work.go.kr/member/login.do
    2. Request Method:
      POST
    3. Status Code:
      302 Moved Temporarily
    4. Remote Address:
      210.95.199.70:443
    5. Referrer Policy:
      no-referrer-when-downgrade
  1. Response Headersview source
    1. Connection:
      Keep-Alive
    2. Content-Language:
      ko-KR
    3. Content-Type:
      text/plain
    4. Date:
      Sat, 02 Dec 2017 12:36:13 GMT
    5. Keep-Alive:
      timeout=3, max=100
    6. Location:
      http://www.work.go.kr:80/seekWantedMain.do
    7. Server:
      none
    8. Set-Cookie:
      UID=wogh4233; path=/; secure
    9. Transfer-Encoding:
      chunked
    10. X-UA-Compatible:
      IE=EmulateIE7
  2. Request Headersview source
    1. Accept:
      text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    2. Accept-Encoding:
      gzip, deflate, br
    3. Accept-Language:
      ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7
    4. Cache-Control:
      max-age=0
    5. Connection:
      keep-alive
    6. Content-Length:
      691
    7. Content-Type:
      application/x-www-form-urlencoded
    8. Cookie:
      PCID=14208206920601006679019; WMONID=M9xw4y2EHbp; todayCheyoungJobyoung=%28%uC8FC%29%uD0D1%uC5D4%uC9C0%uB2C8%uC5B4%uB9C1%5E%uBCF8%uC0AC%20%uACF5%uBB34%20%uAD6C%uC778%5E%5E%uCC44%uC6A9%uC2DC%uAE4C%uC9C0%28%uC778%uC99D%uC77C%uB85C%uBD80%uD130%20%uCD5C%uB300%202%uAC1C%uC6D4%20%uC774%uB0B4%29%5EK151121712010048%5EwantedAuthNo%3DK151121712010048%26search_gubun%3D%26url%3D%5EVALIDATION; UID=wogh4233; WORKNETSESSIONID=JSLmhvdKRJbBTCxmJjYR11npBGnD1MplG62hkdpsQQ7JbsQRpNNP!-2111772205!-107417884; loginRedirectUrl=; loginReloadFormId=; loginCallSystem=; popupYN=N; NEW_MAIN_TAB_INDEX=0; SESSION_CREATION_TIME=1512217962394
    9. Host:
      www.work.go.kr
    10. Origin:
      http://www.work.go.kr
    11. Referer:
      http://www.work.go.kr/seekWantedMain.do
    12. Upgrade-Insecure-Requests:
      1
    13. User-Agent:
      Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

이렇게 나온다.

근데 이상한게 

Status Code:

302 Moved Temporarily

이렇게 나왔다.

그래서 아래 부분을 참고해서

Location:
http://www.work.go.kr:80/seekWantedMain.do

<?

include "Snoopy.class.php";

$snoopy=new Snoopy;


$submit_url_form = "http://www.work.go.kr:80/seekWantedMain.do";


$submit_vars["redirectUrl"] = "/seekWantedMain.do";

$submit_vars["custId"] = "ㄹㄹㄹ";

$submit_vars["pwd"] = "ㅇㅇㅇ";

$snoopy->submit($submit_url_form,$submit_vars);

print $snoopy->results;


?>


이렇게 하니 되었다.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함