python - What's the corresponding option of CURLOPT_ACCEPT_ENCODING in pycurl? -


pycurl is a python binding for liburl. For most of the options, libcurl is similar in pycurl. But I can not find people for CURLOPT_ACCEPT_ENCODING and CURLOPT_TRANSFER_ENCODING.

Anyway, I am using Ubuntu 13.04, and the Pacal version 'libcurl / 7.29.0 GnuTLS / 2.12.23 zlib / 1.2.7 Libidan / 1.25 Libreng / 2.3'

< / Div>

I found a pycurl.ENCODING option in pycurl.

  c.setopt (c.ENCODING, 'gzip, deflate')  

and captured the traffic with the stars,

< Pre> accept-encoding: gzip, deflate

has been added.

Then pycurl.ENCODING should be a compatible option of CURLOPT_ACCEPT_ENCODING.

According to the option CURLOPT_ACCEPT_ENCODING CURLOPT_ENCODING was called before libcurl 7.21.6.

But I did not find CURLOPT_TRANSFER_ENCODING in Pictel.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -