diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-05-12 12:45:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-05-12 12:45:14 +0000 |
commit | c0197f19cfcec0dd1ade0648d123b9399a6a1959 (patch) | |
tree | 3ecaac4877588f350d755323cc53bab5e093869c /lib/README.encoding | |
parent | 3994d67eea975507e1ba0f180680d9e237ddacf0 (diff) |
Dan Fandrich changed CURLOPT_ENCODING to select all supported encodings if
set to "". This frees the application from having to know which encodings
the library supports.
Diffstat (limited to 'lib/README.encoding')
-rw-r--r-- | lib/README.encoding | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/README.encoding b/lib/README.encoding index 5f878038e..d81cf50fe 100644 --- a/lib/README.encoding +++ b/lib/README.encoding @@ -42,7 +42,9 @@ Currently, libcurl only understands how to process responses that use the that will work (besides "identity," which does nothing) are "deflate" and "gzip" If a response is encoded using the "compress" or methods, libcurl will return an error indicating that the response could not be decoded. If -<string> is NULL or empty no Accept-Encoding header is generated. +<string> is NULL no Accept-Encoding header is generated. If <string> is a +zero-length string, then an Accept-Encoding header containing all supported +encodings will be generated. The CURLOPT_ENCODING must be set to any non-NULL value for content to be automatically decoded. If it is not set and the server still sends encoded |