RosettaCodeData/Task/HTTPS/Lingo/https-1.lingo
2016-12-05 23:44:36 +01:00

10 lines
264 B
Text

ch = xtra("Curl").new()
CURLOPT_URL = 10002
ch.setOption(CURLOPT_URL, "https://sourceforge.net")
res = ch.exec(1)
if integerP(res) then
put "Error:" && curl_error(res)
else
put "Result:" && res.readRawString(res.length)
end if
-- "Result: <!doctype html> ..."