liquid_feedback_frontend

diff env/net/curl.lua @ 286:c587d8762e62

Registration process updated for Core 2.0, lockable member fields, notification settings
author bsw
date Sat Feb 25 11:51:37 2012 +0100 (2012-02-25)
parents
children f49cdfb72567
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/env/net/curl.lua	Sat Feb 25 11:51:37 2012 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +function net.curl(url)
     1.5 +  local stdout, errmsg, status = os.pfilter(nil, "curl", url)
     1.6 +  if not stdout then
     1.7 +    error("Error while executing curl: " .. errmsg)
     1.8 +  end
     1.9 +  if status ~= 0 then
    1.10 +    return nil
    1.11 +  end
    1.12 +  return stdout
    1.13 +end
    1.14 \ No newline at end of file

Impressum / About Us