             vfwebqq:@authInfo.vfwebqq
             t:new Date().getTime()
 
-        cookie2 = Cookie.filterCookieByDomain(@cookie, 's.web2.qq.com')
-        cookie3 = Cookie.joinCookie(cookie2)
         client = HttpClient.create('http://s.web2.qq.com')
             .path('api/get_friend_info2')
             .query(params)
-            .header('Cookie', cookie3)
+            .header('Cookie', @cookie())
             .get()((err, resp, body) =>
                 cb body
         )

        params =
            r: JSON.stringify(rValue)

        cookie2 = Cookie.filterCookieByDomain(@cookie, 's.web2.qq.com')
        cookie3 = Cookie.joinCookie(cookie2)
        data = QueryString.stringify(params)
        client = HttpClient.create('http://s.web2.qq.com')
            .path('api/get_user_friends2')
            .header('Cookie', cookie3)
            .header('Referer', 'http://s.web2.qq.com/proxy.html?v=20110412001&callback=1&id=3')
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(data)((err, resp, body) =>


        client = HttpClient.create('http://d.web2.qq.com')
            .path('channel/send_qun_msg2')
            .header('Cookie', @cookie())
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(QueryString.stringify(params))((err, resp, body) ->
                console.log 'send group message', err, body
            )

    sendToDiscussionGroup: (msg, callback) ->
        if not msg.to
            return
        did = msg.to.uin
        if not did
            did = getDiscussionGroupUin msg.to
            if not did
                return

        rValue =
            did: did
            msg_id: @messageId++
            clientid: @authInfo.clientid
            psessionid: @authInfo.psessionid
            content: msg.message()
        params =
            r: JSON.stringify rValue
            clientid: @authInfo.clientid
            psessionid: @authInfo.psessionid

        client = HttpClient.create('http://d.web2.qq.com')
            .path('channel/send_discu_msg2')
            .header('Cookie', @cookie())
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(QueryString.stringify(params))((err, resp, body) ->
                console.log 'send discussion group message', err, body
            )

    online: ->
        rValue =
