added curl_setopt CURLOPT_PORT -> SERVER_PORT for compatibility with other systems where it can be a forwarded port