RosettaCodeData/Task/HTTPS-Authenticated/Phix/https-authenticated.phix

10 lines
248 B
Text
Raw Permalink Normal View History

2018-08-17 15:15:24 +01:00
include builtins\libcurl.e
curl_global_init()
atom curl = curl_easy_init()
curl_easy_setopt(curl, CURLOPT_URL, "https://user:password@example.com/")
object res = curl_easy_perform_ex(curl)
curl_easy_cleanup(curl)
curl_global_cleanup()
puts(1,res)