cURL error 61

Pending

Import WP Pro Updated 2 weeks ago 4 Replies

Vinicius asked 3 weeks ago on August 25, 2025 at 6:14 pm

I’m trying to import a url but it is giving error when I import the file through the link

J

James replied Support Agent

3 weeks ago on August 26, 2025 at 9:18 pm

Hi Vinicius,

After googling curl error 61, it suggests something wrong with the file being fetched, are you able to provide the url so i can have a look and see what is going on?

James

VB

Vinicius replied

2 weeks ago on August 27, 2025 at 1:52 pm

The url is: http://app.revendamais.com.br/application/index.php/apiGeneratorXml/generator/sitedaloja/17201514a2cf8f7df6f440b4f630cb6e12539.xml

I tested this URL in another plugin and worked normally, but I need to use some functions of this plugin for my site.

J

James replied Support Agent

2 weeks ago on August 27, 2025 at 2:05 pm

Thank you, i have tested this locally and i am able to replicate this issue.

cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip, br, zstd content encodings.

I will update you when i have more information to share.

James

J

James replied Support Agent

2 weeks ago on August 27, 2025 at 2:22 pm

The issue is the xml feed has the content-encoding header set to UTF-8 which is not a valid format for the spec (https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Encoding?utm_source=mozilla&utm_medium=devtools-netmonitor&utm_campaign=default), so the servers curl / wp_remote_get function fails to download the file.

There are other ways to download files outside of the wordpress platform, i will have a look and see which ones can bypass this.

James