RosettaCodeData/Task/HTTPS-Authenticated/LiveCode/https-authenticated-2.livecode
2023-07-01 13:44:08 -04:00

7 lines
276 B
Text

command getAuthWebResource
libURLFollowHttpRedirects true
libURLSetSSLVerification true
set the httpHeaders to "Authorization: Basic " && base64Encode("user:passwd")
put URL "https://example.basicauth.com" into response
put response
end getAuthWebResource