Skip to content

curl_easy_strerror parameter documentation fix - #1

Open
ikyman wants to merge 1 commit into
SamuelMarks:masterfrom
ikyman:patch-1
Open

curl_easy_strerror parameter documentation fix#1
ikyman wants to merge 1 commit into
SamuelMarks:masterfrom
ikyman:patch-1

Conversation

@ikyman

@ikyman ikyman commented Jul 14, 2026

Copy link
Copy Markdown

This makes the example more that the error code should be passed into libcurl function curl_easy_strerror.

Previously, this documentation told me to use the variable name "res" as input to curl_easy_strerror. This "res" variable is undefined. The obvious replacement for "res" is the existing "response" variable.

The response variable is a curl-simple-https ServerResponse Struct. It is incompatible as a parameter for curl_easy_strerror. This fix makes explicit that the curl_easy_strerror takes in the response code.

This makes the example more that the error code should be passed into libcurl function curl_easy_strerror.

Previously, this documentation told me to use the variable name "res" as input to curl_easy_strerror.
This "res" variable is undefined. The obvious replacement for "res" is the existing "response" variable.

The response variable is a curl-simple-https ServerResponse Struct. It is incompatible as a parameter for curl_easy_strerror.
This fix makes explicit that the curl_easy_strerror takes in the response code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant