SP TransportOption fails to set curl username/password
Lukas Hämmerle
lukas.haemmerle at switch.ch
Fri May 20 08:25:01 UTC 2022
On 18.05.22 14:13, Cantor, Scott wrote:
>> The log still mentions only that it could not set the latter two:
>
> That's because those are the wrong numbers. Options in curl are
> numerically offset by various constants, and options that take
> strings are based at 10000 (CURLOPTTYPE_OBJECTPOINT). You add the
> number in the macro to get the actual option value.
Ahh, thank you for the hint :-) Now it works:
<TransportOption provider="CURL"
option="107">1</TransportOption>
<TransportOption provider="CURL"
option="10173">username</TransportOption>
<TransportOption provider="CURL"
option="10174">s3cr3tpassword</TransportOption>
I added this example to the wiki page.
Best Regards
Lukas
--
SWITCH
Lukas Hämmerle, Trust & Identity
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
+41 44 268 15 64 lukas.haemmerle at switch.ch http://www.switch.ch
More information about the users
mailing list