alexcrichton / alexcrichton/curl-rust

curl with brotli compression

Open
#458 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
1.1k
Forks
258
PR merge metrics
No merged PRs in 30d

Description

How can I use curl to fetch pages using brotli compression?
when i use handle.accept_encoding("gzip,deflate,br").unwrap(); and then use perform(),
it panic :

Error { description: "Unrecognized or bad HTTP Content or Transfer-Encoding", code: 61, extra: Some("Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.") }

it seems that curl did not support brotli compression

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.