Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This task either encodes a string into URL encoded format, or decodes it instead.

URL encoding/decoding settings

Description

Contains a description of the task, enter the reason for its existence here.

JSON key: description
Default value: Blank

Input

Enter the input to encode or decode here - see Scripts and Macros for details on how to specify macro content.

JSON key: input
Default value: None

Encode input

Check to URL encode input, uncheck to decode.

JSON key: encode
Default: false

Character set

Specify the character set to use when encoding/decoding - usually UTF-8 should be used.

JSON key: encoding
Default: UTF-8

Request attribute name

Name of request attribute to store encoded/decoded value within. This request attribute is stored within the context for the currently executing request.

JSON key: target.attribute.name
Default: None

JSON Configuration

Below is a set of example configuration.

{
  "encode": true,
  "input": "%{REQUEST_URI}",
  "target.attribute.name": "encoded_request",
  "description": "urlencode",
  "encoding": "UTF-8",
  "class": "io.ceptor.pipeline.tasks.URLEncoderTask"
}
  • No labels