gen cookie, use proxy server