WordPress / WordPress/Requests

Error 61 in Curl 7.55.1 and 7.58.0

Open
#374 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Windows 10, Curl 7.55.1 and PHP 7.2.5
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.