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

8 lines
276 B
Plaintext

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