mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04:00
Add "HTTP request" operation
This commit is contained in:
parent
f1e7bc3363
commit
a5f1c430a3
2 changed files with 90 additions and 0 deletions
|
@ -3388,6 +3388,39 @@ const OperationConfig = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"HTTP request": {
|
||||
description: [
|
||||
"Makes a HTTP request and returns the response body.",
|
||||
"<br><br>",
|
||||
"This operation supports different HTTP verbs like GET, POST, PUT, etc.",
|
||||
"<br><br>",
|
||||
"You can add headers line by line in the format <code>Key: Value</code>",
|
||||
"<br><br>",
|
||||
"This operation will throw an error for any status code that is not 200, unless the 'Ignore status code' option is checked.",
|
||||
].join("\n"),
|
||||
run: HTTP.runHTTPRequest,
|
||||
inputType: "string",
|
||||
outputType: "string",
|
||||
args: [
|
||||
{
|
||||
name: "Method",
|
||||
type: "option",
|
||||
value: HTTP.METHODS,
|
||||
}, {
|
||||
name: "URL",
|
||||
type: "string",
|
||||
value: "",
|
||||
}, {
|
||||
name: "Headers",
|
||||
type: "text",
|
||||
value: "",
|
||||
}, {
|
||||
name: "Ignore status code",
|
||||
type: "boolean",
|
||||
value: false,
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
export default OperationConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue