bsw@286: function net.curl(url) bsw@728: local stdout, errmsg, status = extos.pfilter(nil, "curl", url) bsw@286: if not stdout then bsw@286: error("Error while executing curl: " .. errmsg) bsw@286: end bsw@286: if status ~= 0 then bsw@286: return nil bsw@286: end bsw@286: return stdout bsw@286: end