HTTP Client

<< Click to Display Table of Contents >>

Navigation:  Hardware Modules > aMG EthernetINF >

HTTP Client

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

http_client_block

This block implement HTTP method POST and GET, based on TCP application of the lwIP stack.

For more information about software,  see lwIP TCP/IP stack.

What can be configured?

http_client_mask

Configuration item

Selectable option/ Value

Description

Configuration

httpPOST | httpGET


Content Type

Specify content type of posting data.

Note: depending on data format and remote Server requirement.

Read HTTP response

Checked | Unchecked

Checked: Response data will be available at output block when status is SUCCESS (3).

Unchecked: Response data from remote Server will be ignored.

Note: The response data will be NULL terminated text.

HTTP response output max size (bytes)

<specify number of bytes>

Specify buffer size (expected).

Begin output pattern

<Specify>

Used for extract a part of string from the response data which starting with specified "Begin output pattern".

Terminate output pattern

<Specify>

Used for extract a part of string from the response data which starting with specified "Begin output pattern" and ending with "Terminate output pattern".

Sample time (sec)

(Sample time value)

Specify sample time value.

Limitation

1. The block did not support HTTP only, without secure protocol (HTTPS).

Demo

HTTP method POST and GET for IoT application demo