1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

Dan F clarified the CURLOPT_ENCODING description after his changes to

allow "" to enable all support formats.
This commit is contained in:
Daniel Stenberg 2003-05-12 12:47:35 +00:00
parent 246f3a63f6
commit 8f85933d7c

View File

@ -335,13 +335,18 @@ prompt function.
.SH HTTP OPTIONS .SH HTTP OPTIONS
.TP 0.4i .TP 0.4i
.B CURLOPT_ENCODING .B CURLOPT_ENCODING
Three encodings are supported: \fIidentity\fP, which does nothing, Sets the contents of the Accept-Encoding: header sent in an HTTP
\fIdeflate\fP which requests the server to compress its response using the request, and enables decoding of a response when a Content-Encoding:
zlib algorithm, and \fIgzip\fP which requests the gzip algorithm. This header is received. Three encodings are supported: \fIidentity\fP,
is a request, not an order; the server may or may not do it. This which does nothing, \fIdeflate\fP which requests the server to
option must be set (to any value) or else any unsolicited encoding done compress its response using the zlib algorithm, and \fIgzip\fP which
by the server is ignored. See the special file lib/README.encoding for requests the gzip algorithm. If a zero-length string is set, then an
details. Accept-Encoding: header containing all supported encodings is sent.
This is a request, not an order; the server may or may not do it. This
option must be set (to any non-NULL value) or else any unsolicited
encoding done by the server is ignored. See the special file
lib/README.encoding for details.
.TP .TP
.B CURLOPT_FOLLOWLOCATION .B CURLOPT_FOLLOWLOCATION
A non-zero parameter tells the library to follow any Location: header that the A non-zero parameter tells the library to follow any Location: header that the