[Gambas-user] HTTP Client - Authentication Method Missing?

Benoît Minisini g4mba5 at gmail.com
Mon Apr 12 21:07:24 CEST 2021


Le 11/04/2021 à 13:48, Claus Dietrich a écrit :
> With following cli SOAP request I can retrieve the url for the phonebook
> from my fritzbox:
> 
> curl -k -m 5 --anyauth -u <user>:<password> ' http://....'
> 
> Trying to replicate this with Gambas code by using a HttpClient failed.
> The parent curl class provides the const Net.AuthAny, but it seems not
> to be supported by the HttpClient. The program throws an error if I try
> to use it as auth-property and the wiki only lists Net.AuthNone,
> Net.AuthBasic and net.AuthNTLM as allowed authentication methods.
> 
> Are there reason that this authentication method is missing or was it
> possibly forgotten?
> 
> Regards
> 
> Claus
> 

This can be added (please make a request on the bugtracker).

This is not an authentication method, but a libcurl flag telling him to 
try every method until it finds a suitable one.

Regards,

-- 
Benoît Minisini


More information about the User mailing list