RosettaCodeData/Task/HTTPS-Authenticated/LiveCode/https-authenticated-2.livecode

8 lines
276 B
Text
Raw Normal View History

2023-07-01 11:58:00 -04:00
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