Fixed not defined global SERVER, REMOTE_PORT, KEY, METHOD, and the default options