Skip to main content
Skip table of contents

ItineraryStep – Http

Besides the config fields present in the UI, there are a few hidden properties of this itinerary.

 

Macro in Endpoint.

You have the option of inserting dynamic macros in the endpoint url which will be replaced by properties.

The input to these macros would be promoted to this namespace:

http://link.bizbrains.com/properties/httpservice

The way to insert macros in the URL is with {} around a name.

Example

Endpoint: https://postman-echo.com/{itemtype}/{itemnumber}

 

Properties:
itemtype@http://link.bizbrains.com/properties/httpservice
value: product

itemnumber@http://link.bizbrains.com/properties/httpservice
value: q1w2e3r4t5

 

Resulting Endpoint: https://postman-echo.com/product/q1w2e3r4t5

 

 

Extracting of content-type and encoding

When sending the response body through to the next step, we try to set the content type based on header information in the response.

For the content-type we search for the header with the same name. The value in this field can have a range of values, but we are assuming that the content-format is the first value in the field.

For the encoding we split the value on “;” to find other sets of information. We look for one with “charset” and take the encoding from that. We then try to use that value to find an encoding in the code that we recognize.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.