Bug #79033 [Csd]: Curl timeout error with specific url and post
| From: | cmb@php.net | Date: | Sat, 28 Dec 2019 18:05:08 +0000 |
| Subject: | Bug #79033 [Csd]: Curl timeout error with specific url and post | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224576@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79033&edit=1
ID: 79033
Updated by: cmb@php.net
Reported by: dav dot tur19 at gmail dot com
Summary: Curl timeout error with specific url and post
Status: Closed
Type: Bug
Package: cURL related
Operating System: linux/windows
PHP Version: 7.4.1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
With PHP 7.4.1, the request that is sent is
POST /bot12341234:WASDWASD/getMe HTTP/1.1
Host: api.telegram.org
Accept: */*
Content-Length: 46
Content-Type: multipart/form-data; boundary=------------------------3f43f848cba8eb3d
--------------------------3f43f848cba8eb3d--
To my knowledge, this is a valid request, but apparently the empty
part may cause issues, and since former PHP versions sent
POST /bot12341234:WASDWASD/getMe HTTP/1.1
Host: api.telegram.org
Accept: */*
Content-Length: 0
it seems to be prudent to generally switch back to that behavior.
Previous Comments:
------------------------------------------------------------------------
[2019-12-28 16:17:28] dav dot tur19 at gmail dot com
I mean that the bug does not occur unless under certain conditions, for example with a normal page
it did not occur
------------------------------------------------------------------------
[2019-12-28 15:17:05] cmb@php.net
Yes, I've also checked with the given test script, and that
returned "success" with the fix. You can verify with
<https://windows.php.net/downloads/snaps/php-7.4/r6d1dff6/>.
------------------------------------------------------------------------
[2019-12-28 14:53:20] dav dot tur19 at gmail dot com
have you checked the test file? the problem seemed to occur only on that specific url
(https://api.telegram.org/bot12341234:WASDWASD/getMe), I couldn't even reproduce it on my
webserver by setting 401 as http code and some other header.
------------------------------------------------------------------------
[2019-12-28 09:50:47] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c47b18a222ceb1d78810d2822170cbf6e110a98c
Log: Fix #79033: Curl timeout error with specific url and post
------------------------------------------------------------------------
[2019-12-27 21:58:13] cmb@php.net
This regression has been introduced with commit a83b68b[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=a83b68ba56714bfa06737a61af795460caa4a105>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79033
--
Edit this bug report at https://bugs.php.net/bug.php?id=79033&edit=1