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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

CURL.SetOptionIgnoreContentLength

Whether to ignore the Content-Length header.

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionIgnoreContentLength"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value Whether to ignore content length. 1 to ignore and 0 to not ignore. 1

Result

Returns "OK" on success.

Description

Whether to ignore the Content-Length header.
This is useful for Apache 1.x (and similar servers) which will report incorrect content length for files over 2 gigabytes. If this option is used, curl will not be able to accurately report progress, and will simply stop the download when the server ends the connection.

See also IGNORE_CONTENT_LENGTH option in CURL manual.

Blog Entries

Created 18th August 2014, last changed 18th August 2014


CURL.SetOptionIPResolve - CURL.SetOptionInFileSize

💬 Ask a question or report a problem