Skip to content

curl

CURL a given URL

Description

Use CURL command to get a given URL

Synopsis

curl
    [--site <site>]
    [--request|-X <request>]
    [--data|-d <data>]
    [--header|-H <header>]
    [--ssl]
    [--insecure]
    <url>

Arguments

site - (string)

     Site to run the command
     Example: --site "site-1"
     Default: input.site      Attributes: optional

request - (string)

     Request command to use
     Example: --request "POST"
     Default: _None_      Attributes: optional

data - (string)

     HTTP POST data
     Example: --data "data-1"
     Default: _None_      Attributes: optional

header - (string)

     Custom headers
     Example: --header "Host: www.maira.io"
     Default: _None_      Attributes: optional, multiple allowed

ssl - (bool)

     Use SSL
     Example: --ssl
     Default: _None_      Attributes: optional

insecure - (bool)

     Allow insecure server connections when using SSL
     Example: --insecure
     Default: _None_      Attributes: optional

url - (string)

     URL to get
     Example: "www.maira.io"
     Default: _None_      Attributes: required

Examples

Input:

!curl "https://demo.maira.io"
Output:
<!doctype html><html lang="en" dir="ltr"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>Maira Dashboard | Maira</title><meta name="Maira Description" content="Maira Application"/><meta name="Maira keywords" content="Resilent workflow, teams"/><meta name="Maira" content="Maira"/><noscript id="jss-insertion-point"></noscript><link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet"/><link href="/static/css/main.50058fe5.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,c,o=t[0],d=t[1],u=t[2],i=0,s=[];i<o.length;i++)c=o[i],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&s.push(a[c][0]),a[c]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(l&&l(t);s.length;)s.shift()();return f.push.apply(f,u||[]),r()}function r(){for(var e,t=0;t<f.length;t++){for(var r=f[t],n=!0,c=1;c<r.length;c++){var d=r[c];0!==a[d]&&(n=!1)}n&&(f.splice(t--,1),e=o(o.s=r[0]))}return e}var n={},c={9:0},a={9:0},f=[];function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[];c[e]?t.push(c[e]):0!==c[e]&&{3:1,4:1,11:1,12:1,14:1,16:1,18:1,21:1,22:1,31:1,33:1,37:1}[e]&&t.push(c[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"da181bfb",4:"4cd18a29",5:"31d6cfe0",6:"31d6cfe0",7:"31d6cfe0",11:"2cd9e723",12:"bd482259",13:"31d6cfe0",14:"4f196649",15:"31d6cfe0",16:"92bc5b04",17:"31d6cfe0",18:"fb40f8d1",19:"31d6cfe0",20:"31d6cfe0",21:"bd482259",22:"4f196649",23:"31d6cfe0",24:"31d6cfe0",25:"31d6cfe0",26:"31d6cfe0",27:"31d6cfe0",28:"31d6cfe0",29:"31d6cfe0",30:"31d6cfe0",31:"ec6ec50e",32:"31d6cfe0",33:"f9491f10",34:"31d6cfe0",35:"31d6cfe0",36:"31d6cfe0",37:"cbfbd810",38:"31d6cfe0",39:"31d6cfe0"}[e]+".chunk.css",a=o.p+n,f=document.getElementsByTagName("link"),d=0;d<f.length;d++){var u=(l=f[d]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(u===n||u===a))return t()}var i=document.getElementsByTagName("style");for(d=0;d<i.length;d++){var l;if((u=(l=i[d]).getAttribute("data-href"))===n||u===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,f=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");f.code="CSS_CHUNK_LOAD_FAILED",f.request=n,delete c[e],s.parentNode.removeChild(s),r(f)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){c[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var f,d=document.createElement("script");d.charset="utf-8",d.timeout=120,o.nc&&d.setAttribute("nonce",o.nc),d.src=function(e){return o.p+"static/js/"+({}[e]||e)+"."+{0:"5ba04d0e",1:"78417d10",2:"8e0935d1",3:"e3b48845",4:"7605fe3c",5:"de7b41dd",6:"e1bd39ff",7:"ac95d85e",11:"74793d3c",12:"ae7454bd",13:"a3966856",14:"bc509f4e",15:"f3e6b640",16:"4e2ea666",17:"9fb1fa55",18:"4dfffc76",19:"692e94ae",20:"a2238842",21:"f621ae49",22:"5f1b0171",23:"9963424d",24:"a06ba0d4",25:"c8585a32",26:"66261bfa",27:"3728a428",28:"91cda945",29:"3d3c30ca",30:"dafbff5c",31:"27c2a1b9",32:"132dd30d",33:"9d780bf0",34:"fa5338c3",35:"cf71a9c4",36:"d85cdec3",37:"9b067e07",38:"647acc1a",39:"6a4a1bb4"}[e]+".chunk.js"}(e);var u=new Error;f=function(t){d.onerror=d.onload=null,clearTimeout(i);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+c+")",u.name="ChunkLoadError",u.type=n,u.request=c,r[1](u)}a[e]=void 0}};var i=setTimeout((function(){f({type:"timeout",target:d})}),12e4);d.onerror=d.onload=f,document.head.appendChild(d)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var d=this["webpackJsonpmaira-ui"]=this["webpackJsonpmaira-ui"]||[],u=d.push.bind(d);d.push=t,d=d.slice();for(var i=0;i<d.length;i++)t(d[i]);var l=u;r()}([])</script><script src="/static/js/10.3be9a979.chunk.js"></script><script src="/static/js/main.37e54276.chunk.js"></script></body></html>

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "builtin"
Service Instance
Namespace
Object Type "curl"
Object ID

Please see Access Control for details.