         req.write(data);
     req.end();
 
-handle_resp_body = (body , callback) ->
+handle_resp_body = (body , options , callback) ->
     err = null
     try
         ret = JSON.parse body
     catch error
-        console.log "解析出错",body
+        console.log "解析出错", options.url, body
         console.log error
         err = error
         ret = null

      resp.on 'data', (chunk) ->
        body += chunk
      resp.on 'end', ->
        handle_resp_body(body, callback)
        
    req.on "error" , (e)->
        callback(null,e)


      query = querystring.stringify params
      append = if aurl.query then '&' else '?'
      options.path += append + query

    options.headers['Cookie'] = all_cookies
    options.headers['Referer'] = 'http://d.web2.qq.com/proxy.html?v=20110331002&callback=1&id=3'

