WordPress / WordPress/Requests
Error 61 in Curl 7.55.1 and 7.58.0
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 500
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Description
Hi.
I get an error 61 when I use a POST request.
The error is here:
curl_setopt($this->handle, CURLOPT_ENCODING, '');
Location: library/Requests/Transport/cURL.php : Line 100
When I removed this line, all the POST request works.
I tested it in:
- Windows 10, Curl 7.55.1 and PHP 7.2.5
- Ubuntu 18.04 , Curl 7.58.1 and PHP 7.2.22
Additional information:
- When I execute
$curl = curl_version();
My$curl['version_number']is 473856
Regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at library/Requests/Transport/cURL.php line 100 and reproduce the POST failure with the listed PHP and cURL versions. Investigate error 61 from CURLOPT_ENCODING; done means POST requests work without removing required response-encoding behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100