The HTTP connector can be used with almost any platform that supports HTTP/HTTPS connectivity. Below are some examples of the connector using the popular site postman-echo.com.
Note: When using each type of HTTP statement it is important that vendor documentation be followed. Each vendor has specific requirements for sending headers and authorizations.
GET Command
The HTTP - GET command is used to retrieve a resource. Consider the following request: https://postman-echo.com/get?foo1=bar1&foo2=bar2
Here is the request breakdown:
-
URL: postman-echo.com
-
EndPoint: /get
-
Parameter / Value: foo1 / bar1
-
Parameter / Value: foo2 / bar2
Example configuration:
Example execution results:
PUT Command
The HTTP - PUT command is used to change or update a resource. Consider the following request: https://postman-echo.com/put
Information sent in a PUT
request can either be sent as Body Text or Query String Parameters. The below example will demonstrate the Body Text style.
Here is the request breakdown:
-
URL: postman-echo.com
-
EndPoint: /put
-
Body: This is expected to be sent back as part of response body.
Example configuration:
Example execution results:
DELETE Command
The HTTP - DELETE command is used to remove a resource. Consider the following request: https://postman-echo.com/delete
Information sent in a DELETE
request can either be sent as Body Text or Query String Parameters. The below example will demonstrate the Body Text style.
Here is the request breakdown:
-
URL: postman-echo.com
-
EndPoint: /delete
-
Body: This is expected to be sent back as part of response body.
Example configuration:
Example execution results:
HTTP - POST
The HTTP - POST command is used to place a resource. Consider the following request: https://postman-echo.com/post
Post: Body Text
Here is the request breakdown for posting via Body Text:
-
URL: postman-echo.com
-
EndPoint: /post
-
Body: This is expected to be sent back as part of response body.
Example configuration:
Example execution results:
Post: Form Values
Here is the request breakdown for posting via Form values:
-
URL: postman-echo.com
-
EndPoint: /post
-
Form Value Name / Value: foo1 / bar1
-
Form Value Name / Value: foo2 / bar2
Note: in this example the Content-Type has been explicitly called out.
Example configuration:
Example execution results: