Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115143 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11378 invoked from network); 25 Jun 2021 14:14:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jun 2021 14:14:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EEA261804C3 for ; Fri, 25 Jun 2021 07:33:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 25 Jun 2021 07:33:21 -0700 (PDT) Received: by mail-il1-f171.google.com with SMTP id o10so4977896ils.6 for ; Fri, 25 Jun 2021 07:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=m8COURi98ySv0itd3JkdbpfhgpOMbqSWl35z5jMKjbU=; b=MU0iCUwSXFDhXJRbZXu79H0JtO/pUWIZRSe3vfmdxyXo57ZyGVWm1c2YkqT4YT8/c1 slM2F0LH/zvovGr3q3JgtK1CMZGKLmDR7MVbO1lSgK9Zy9Uatzt1mFLsoTB9PAmNdt/P Y0J1awknJFrl5wqE4LdPxvzG7S8JpPc0R0xQQ3Oc8x7jTlINItmBQafokBQsJVdfBmWF dsukmc+kXhcr796GBE9P5MCJQPekb3Zmg1GFDN97AykduFqfe+qKR6ubWbLI3GdS4+Ej 3n2s4uwe3ntPwut9EIIFi5yYAJcnk1J72LEMTw0zISxyJ0tADrkmaOok6uazh39lo2yt 0OqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=m8COURi98ySv0itd3JkdbpfhgpOMbqSWl35z5jMKjbU=; b=H/F0dD7DThddxbZ71MyLI1RGqEjJzOuNIpvdYr2JdTnqnRotuNlMemuLJ0UjpZCEPy /uIuytQSSSi/PumZaVub/OTuMxIoaAge5hj84ORiBOja95UW7+JOSkOC/7KAOuZAK6J3 x0biV76qg8kZXDh0IJCojcJlJdd/CvVYDZkaF9B9JONS1qm88VleyLNKFdvV3azcX0qK a+pYFsG/468kCBepeDyFU+elnOPsUI4q5X/oa6+blsVb+Tyx9nDW55C8GXflADtJwAjX FtgR37dWjDORbcMxscIHa1wzWiNl7F0ygAqN6hX0mmJlkyN+k6foGQYneAqAGVD37Lxq lFNQ== X-Gm-Message-State: AOAM533pckcKHajSDKWezz6CieY8XgfJ5VKp7+l62ByHEVRcphxRk+Hy v0F41AXOaROrpHHZqRvRIbSp6NsalhpGZVTBZrxseVbk4ckyeg== X-Google-Smtp-Source: ABdhPJy0Am3faZ/ggKQ2mngR0rf3kdnRK/uF/416pX4mXMgJuLn//BFtV1Bv3PS1qW47mLhRumWlMLdlVEL3xxWXaCE= X-Received: by 2002:a05:6e02:13a1:: with SMTP id h1mr7103348ilo.199.1624631599538; Fri, 25 Jun 2021 07:33:19 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 25 Jun 2021 16:33:07 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000061a66505c59805e4" Subject: [RFC] Under Discussion: Default User-Agent for cURL From: paresy@gmail.com (Michael Maroszek) --00000000000061a66505c59805e4 Content-Type: text/plain; charset="UTF-8" Dear internals, I would like to propose an RFC to add a new php.ini option called curl.user_agent which allows setting a default User-Agent for all cURL requests. This option is the equivalent to user_agent for stream based functions (like file_get_contents). The proposal is quite simple and has no backward incompatible changes. Please have a look at the full RFC: https://wiki.php.net/rfc/curl_user_agent You can also find an initial discussion here: https://www.mail-archive.com/internals@lists.php.net/msg106186.html There is one open issue which Tyson raised to find the correct mode for the ini option. Either PHP_INI_ALL or PHP_INI_SYSTEM is currently being discussed. See here for all details: https://github.com/php/php-src/pull/6834/files#r628774432 The PR: https://github.com/php/php-src/pull/6834 I'd love to hear more feedback and hope to land this to 8.1, if everything goes well. Regards, Michael --00000000000061a66505c59805e4--