 
 # TODO: logger 分级控制
 log   = console.log
+
+
+exports.cookies = ->
+    all_cookies
+
 
 # 是否需要 验证码
 # @param qq

            'Cookie' : all_cookies
    
    req = http.request options, (resp) ->
        log "response: #{resp.statusCode}"
        resp.on 'data', (chunk) ->
            body += chunk
        resp.on 'end', ->
            ret = JSON.parse(body)
            callback( ret )
                    
    req.write(data);
    req.end();

    body = ''
    
    https.get url , (resp) ->
        log "verify code: #{resp.statusCode}"
        # log resp.headers
        all_cookies = all_cookies.concat resp.headers['set-cookie']
        resp.setEncoding 'binary'
