proxy: support proxy method and automatic proxy