Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the range.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
curl | The CURL session handle. | $curl | |
Value | Range string. | "1000-2000" | |
Encoding | The text encoding for text parameter. Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"utf8" | Optional |
Returns "OK" on success.
See also RANGE option in CURL manual.
Get the first 200 bytes:
Set Variable [$r; MBS( "CURL.SetOptionRange"; $curl; "0-199") ]
Set Variable [$r; MBS( "CURL.SetOptionURL; $curl; "https://example.com") ]
Created 18th August 2014, last changed 6th September 2021