resetting, or before saving new cookies if (isset($_REQUEST["reset"])) { // if (isset($_REQUEST["reset"]) || isset($_REQUEST["save"])) { // Removing isset($_REQUEST["save"])) fixes the problem that settings don't "stick" if you have separately received it. d) If the Program specifies that a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE: CURLOPT_PROXYTYPE options: CURLPROXY_HTTP CURLPROXY_SOCKS4 CURLPROXY_SOCKS4A CURLPROXY_SOCKS5