curl
Performs network requests through curl.
Target
Signature
1curl(url::string= ?, -username::string= ?, -password::string= ?)Performs network requests through curl.
curl constructs or identifies a LaiRu value type. curl performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.
Parameters
url- Optional value of type
string. Supplyurlpositionally unless the signature shows a keyword form. -username- Optional value of type
string. Supply-usernameby keyword, keeping the leading hyphen in the call. -password- Optional value of type
string. Supply-passwordby keyword, keeping the leading hyphen in the call.
Examples
Basic call
1curl('https://example.com')->asStringThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.