Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Enables automatic decompression of HTTP downloads.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 7.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Param | The new setting. | 1 |
Returns OK or error.
See also ACCEPT_ENCODING option in CURL manual.
Request gzip compression:
MBS( "CURL.SetOptionAcceptEncoding"; $curl; "gzip" )
Download with compression:
# Start new session
Set Variable [ $curl ; Value: MBS("CURL.New") ]
# Set URL to load (HTTP, HTTPS, FTP, FTPS, SFTP, etc.)
Set Variable [ $result ; Value: MBS("CURL.SetOptionURL"; $curl; CURL Test::URL) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionAcceptEncoding"; $curl; "gzip") ]
# RUN now
Set Field [ CURL Test::Result ; MBS("CURL.Perform"; $curl) ]
# Check result
Set Field [ CURL Test::Text ; MBS("CURL.GetResultAsText"; $curl; "UTF8") ]
Set Field [ CURL Test::debug ; MBS("CURL.GetDebugAsText"; $curl) ]
# Cleanup
Set Variable [ $result ; Value: MBS("CURL.Release"; $curl) ]
Created 27th November 2017, last changed 3th April 2021
CURL.SetOptionAbstractUnixSocket - CURL.SetOptionAcceptTimeoutMS
Feedback: Report problem or ask question.