docs: function writeCookie (response, cookiePath) {
    try {
      debug('got response')
      var cookies = cookie.parse(response.headers['set-cookie'][0])
      debug('connect.sid', cookies['connect.sid'])
      fs.writeFileSync(cookiePath, JSON.stringify(cookies))
    } catch (e) {
      debug(e)
    }
  }