Skip to content

Commit 21b8ce5

Browse files
Merge pull request #106575 from ecfan/http
Add notes that various headers are removed from HTTP calls and Response actions
2 parents 403f91f + 8d730c0 commit 21b8ce5

File tree

5 files changed

+56
-15
lines changed

5 files changed

+56
-15
lines changed

articles/connectors/connectors-native-http.md

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,47 @@
11
---
2-
title: Call HTTP and HTTPS endpoints
3-
description: Send outgoing requests to HTTP and HTTPS endpoints by using Azure Logic Apps
2+
title: Call service endpoints by using HTTP or HTTPS
3+
description: Send outbound HTTP or HTTPS requests to service endpoints from Azure Logic Apps
44
services: logic-apps
55
ms.suite: integration
66
ms.reviewer: klam, logicappspm
77
ms.topic: conceptual
8-
ms.date: 07/05/2019
8+
ms.date: 03/12/2020
99
tags: connectors
1010
---
1111

12-
# Send outgoing calls to HTTP or HTTPS endpoints by using Azure Logic Apps
12+
# Call service endpoints over HTTP or HTTPS from Azure Logic Apps
1313

14-
With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the built-in HTTP trigger or action, you can create automated tasks and workflows that regularly send requests to any HTTP or HTTPS endpoint. To receive and respond to incoming HTTP or HTTPS calls instead, use the built-in [Request trigger or Response action](../connectors/connectors-native-reqres.md).
14+
With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the built-in HTTP trigger or action, you can create automated tasks and workflows that send requests to service endpoints over HTTP or HTTPS. For example, you can monitor the service endpoint for your website by checking that endpoint on a specific schedule. When the specified event happens at that endpoint, such as your website going down, the event triggers your logic app's workflow and runs the actions in that workflow. If you want to receive and respond to inbound HTTPS calls instead, use the built-in [Request trigger or Response action](../connectors/connectors-native-reqres.md).
1515

16-
For example, you can monitor the service endpoint for your website by checking that endpoint on a specified schedule. When a specific event happens at that endpoint, such as your website going down, the event triggers your logic app's workflow and runs the specified actions.
16+
> [!NOTE]
17+
> Based the target endpoint's capability, the HTTP connector supports Transport Layer Security (TLS)
18+
> versions 1.0, 1.1, and 1.2. Logic Apps negotiates with the endpoint over using the highest supported
19+
> version possible. So for example, if the endpoint supports 1.2, the connector uses 1.2 first.
20+
> Otherwise, the connector uses the next highest supported version.
1721
18-
To check or *poll* an endpoint on a regular schedule, you can use the HTTP trigger as the first step in your workflow. On each check, the trigger sends a call or *request* to the endpoint. The endpoint's response determines whether your logic app's workflow runs. The trigger passes along any content from the response to the actions in your logic app.
22+
To check or *poll* an endpoint on a recurring schedule, [add the HTTP trigger](#http-trigger) as the first step in your workflow. Each time that the trigger checks the endpoint, the trigger calls or sends a *request* to the endpoint. The endpoint's response determines whether your logic app's workflow runs. The trigger passes any content from the endpoint's response to the actions in your logic app.
1923

20-
You can use the HTTP action as any other step in your workflow for calling the endpoint when you want. The endpoint's response determines how your workflow's remaining actions run.
24+
To call an endpoint from anywhere else in your workflow, [add the HTTP action](#http-action). The endpoint's response determines how your workflow's remaining actions run.
2125

22-
Based the target endpoint's capability, the HTTP connector supports Transport Layer Security (TLS) versions 1.0, 1.1, and 1.2. Logic Apps negotiates with the endpoint over using the highest supported version possible. So, for example, if the endpoint supports 1.2, the connector uses 1.2 first. Otherwise, the connector uses the next highest supported version.
26+
> [!IMPORTANT]
27+
> If an HTTP trigger or action includes these headers, Logic Apps removes these
28+
> headers from the generated request message without showing any warning or error:
29+
>
30+
> * `Accept-*`
31+
> * `Allow`
32+
> * `Content-*` with these exceptions: `Content-Disposition`, `Content-Encoding`, and `Content-Type`
33+
> * `Cookie`
34+
> * `Expires`
35+
> * `Host`
36+
> * `Last-Modified`
37+
> * `Origin`
38+
> * `Set-Cookie`
39+
> * `Transfer-Encoding`
40+
>
41+
> Although Logic Apps won't stop you from saving logic apps that use an
42+
> HTTP trigger or action with these headers, Logic Apps ignores these headers.
43+
44+
This article shows how to add an HTTP trigger or action to your logic app's workflow.
2345

2446
## Prerequisites
2547

@@ -31,13 +53,15 @@ Based the target endpoint's capability, the HTTP connector supports Transport La
3153

3254
* The logic app from where you want to call the target endpoint. To start with the HTTP trigger, [create a blank logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md). To use the HTTP action, start your logic app with any trigger that you want. This example uses the HTTP trigger as the first step.
3355

56+
<a name="http-trigger"></a>
57+
3458
## Add an HTTP trigger
3559

3660
This built-in trigger makes an HTTP call to the specified URL for an endpoint and returns a response.
3761

3862
1. Sign in to the [Azure portal](https://portal.azure.com). Open your blank logic app in Logic App Designer.
3963

40-
1. Under **Choose an action**, in the search box, enter "http" as your filter. From the **Triggers** list, select the **HTTP** trigger.
64+
1. Under the designer's search box, select **Built-in**. In the search box, enter `http` as your filter. From the **Triggers** list, select the **HTTP** trigger.
4165

4266
![Select HTTP trigger](./media/connectors-native-http/select-http-trigger.png)
4367

@@ -58,6 +82,8 @@ This built-in trigger makes an HTTP call to the specified URL for an endpoint an
5882

5983
1. When you're done, remember to save your logic app. On the designer toolbar, select **Save**.
6084

85+
<a name="http-action"></a>
86+
6187
## Add an HTTP action
6288

6389
This built-in action makes an HTTP call to the specified URL for an endpoint and returns a response.
@@ -70,7 +96,7 @@ This built-in action makes an HTTP call to the specified URL for an endpoint and
7096

7197
To add an action between steps, move your pointer over the arrow between steps. Select the plus sign (**+**) that appears, and then select **Add an action**.
7298

73-
1. Under **Choose an action**, in the search box, enter "http" as your filter. From the **Actions** list, select the **HTTP** action.
99+
1. Under **Choose an action**, select **Built-in**. In the search box, enter `http` as your filter. From the **Actions** list, select the **HTTP** action.
74100

75101
![Select HTTP action](./media/connectors-native-http/select-http-action.png)
76102

articles/connectors/connectors-native-reqres.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: Receive and respond to HTTPS calls
3-
description: Handle HTTPS requests and events in real time by using Azure Logic Apps
2+
title: Receive and respond to calls by using HTTPS
3+
description: Handle inbound HTTPS requests from external services by using Azure Logic Apps
44
services: logic-apps
55
ms.suite: integration
66
ms.reviewers: klam, logicappspm
77
ms.topic: conceptual
8-
ms.date: 01/14/2020
8+
ms.date: 03/12/2020
99
tags: connectors
1010
---
1111

12-
# Receive and respond to incoming HTTPS calls by using Azure Logic Apps
12+
# Receive and respond to inbound HTTPS requests in Azure Logic Apps
1313

1414
With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the built-in Request trigger or Response action, you can create automated tasks and workflows that receive and respond to incoming HTTPS requests. For example, you can have your logic app:
1515

@@ -199,6 +199,21 @@ You can use the Response action to respond with a payload (data) to an incoming
199199

200200
Your logic app keeps the incoming request open only for one minute. Assuming that your logic app workflow includes a Response action, if the logic app doesn't return a response after this time passes, your logic app returns a `504 GATEWAY TIMEOUT` to the caller. Otherwise, if your logic app doesn't include a Response action, your logic app immediately returns a `202 ACCEPTED` response to the caller.
201201

202+
> [!IMPORTANT]
203+
> If a Response action includes these headers, Logic Apps removes these headers
204+
> from the generated response message without showing any warning or error:
205+
>
206+
> * `Allow`
207+
> * `Content-*` with these exceptions: `Content-Disposition`, `Content-Encoding`, and `Content-Type`
208+
> * `Cookie`
209+
> * `Expires`
210+
> * `Last-Modified`
211+
> * `Set-Cookie`
212+
> * `Transfer-Encoding`
213+
>
214+
> Although Logic Apps won't stop you from saving logic apps that have a
215+
> Response action with these headers, Logic Apps ignores these headers.
216+
202217
1. In the Logic App Designer, under the step where you want to add a Response action, select **New step**.
203218

204219
For example, using the Request trigger from earlier:
-10.6 KB
Loading
-14.4 KB
Loading
9.74 KB
Loading

0 commit comments

Comments
 (0)