Skip to content

CURLINFO_SIZE_UPLOAD_T & CURLINFO_CONTENT_LENGTH_UPLOAD_T docs #21953

Description

@BazaarAcc32

Specify which documentation you found a problem with

Docs for CURLINFO_SIZE_UPLOAD_T says:
Pass a pointer to a curl_off_t to receive the total amount of bytes that were uploaded.

The problem

The following points should be clarified in the documentation:

  1. If there were redirects, this value will be zero, even if the very first request was sent using the POST method. The exception is when CURLOPT_POSTREDIR was enabled (same for CURLINFO_CONTENT_LENGTH_UPLOAD_T)
  2. Even if there were redirects, this value always remains the same and is not cumulative

Also, docs for CURLINFO_CONTENT_LENGTH_UPLOAD_T says:
Pass a pointer to a curl_off_t to receive the specified size of the upload

It's almost same from documentation perspective. So, what is the difference between CURLINFO_SIZE_UPLOAD_T and CURLINFO_CONTENT_LENGTH_UPLOAD_T ?

Metadata

Metadata

Assignees

Type

No type

Fields

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