DMC-1344: Add SciTag transfer parameter
Add SciTag transfer parameter. When orchestrating an HTTP-TPC transfer, the SciTag value will be sent via the "SciTag" header Two new constants have been introduced:
GFAL_SCITAG_MIN_VALUE: (1<<6) + 1 // 65
GFAL_SCITAG_MAX_VALUE: (1<<16) - 1 // 65535
Validation of the SciTag value is done twice:
- In the
gfal2_transfer_parameters
setter method - In the HTTP-TPC preparation
When the SciTag value is invalid, the error is propagated back to the user.
Example (with SciTag support implemented over the full Gfal2 stack):
$ gfal-copy --scitag 3 https://eospublic.cern.ch:443/eos/opstest/dteam/file.100mb https://eospps.cern.ch:443/eos/opstest/dteam/file.100mb_`uuidgen`
gfal-copy error: 22 (Invalid argument) - Invalid SciTag value (must be in the [65, 65535] range)
Closes DMC-1344