NateOn - 네이트온 프로토콜 플러그인 프로젝트

문자 보내기

쿠키 얻기

송신

GET /nateon30/nateonsms.jsp?TICKET=[ticket]&ID=haze11@nate.com&mobile= HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: ko
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
Host: sms.nate.com
Connection: Keep-Alive
  • [ticket]: TICKET 값

수신

HTTP/1.1 200 OK
Date: Tue, 04 Sep 2007 18:04:25 GMT
Server: Apache
Cache-Control: private
Set-Cookie: ...
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=euc-kr

<html>
 ...
  <input type=hidden name=mobile value="">
  <input type=hidden name=ticket value="[ticket]">
  <input type=hidden name=freeCnt value="[freeCnt]">
  <input type=hidden name=fplusCnt value="-1">
  <input type=hidden name=fplus100 value="-1">
  <input type=hidden name=fplus500 value="-1">
 ...
</html>
  • [ticket]: TICKET 값
  • [freeCnt]: 보낼 수 있는 문자 수

문자 보내기

송신

POST /servlets/NateonSparrow?receivenum=[receivenum]&receivename=%20&v_message=[message]&sendnum=[sendnum]&rsvdate=000000000000&display=MMS&freeAmount=[freeCnt]&notFree=false HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://sms.nate.com/nateon2007/sms.jsp
Accept-Language: ko
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
Host: sms.nate.com
Content-Length: 18
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ...

msg=&isFirst=first

수신

HTTP/1.1 200 OK
Date: Tue, 04 Sep 2007 18:04:50 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=euc-kr

1bb





<HTML><HEAD><TITLE>........ .... - ..........</TITLE>
</HEAD>
<BODY bgColor=#ffffff text=#000000 leftMargin=0 topMargin=0 marginwidth="0" marginheight="0" >

<script language=javascript>
.javascript:window.open('/nateon2007/resultWindow2.jsp?display=MMS&ofr=46&ofp=-1&ofp100=-1&ofp500=-1&cid0=0000000001&t0=1&s0=1&e0=1&scnt=1&reserveflag=false', '', 'titlebar=yes, menubar=no,status=no,width=420,height=356');
</script>..
</BODY>
</HTML>

0