Skip to content

Return CURLE_WRITE_ERROR when CURLOPT_WRITEFUNCTION callback returns CURL_WRITEFUNC_ERROR #12201

@enwillyado

Description

@enwillyado

I did this

Make a CURLOPT_WRITEFUNCTION callback that returns CURL_WRITEFUNC_ERROR in order to abort the curl session.

For instance, if a large download need to be aborted without errors by user.

I expected the following

imagen

The cURL session must return CURLE_ABORTED_BY_CALLBACK.

curl/libcurl version

lib environment, last version

operating system

Unix ARM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions