curl

Performs network requests through curl.

Target type

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. Supply url positionally unless the signature shows a keyword form.
-username
Optional value of type string. Supply -username by keyword, keeping the leading hyphen in the call.
-password
Optional value of type string. Supply -password by keyword, keeping the leading hyphen in the call.

Examples

Basic call

1curl('https://example.com')->asString
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.