---
title: "STM32 W5500 HTTP Client POST method to request/submit network data"
url: "https://maker.wiznet.io/teddy/projects/stm32-w5500-http-client-post-method-to-request-submit-network-data/"
markdown_url: "https://maker.wiznet.io/teddy/projects/stm32-w5500-http-client-post-method-to-request-submit-network-data/md"
type: "UCC: User Created Content"
author: "14125101739"
author_url: "https://www.programmersought.com/article/14125101739/"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "14125101739"
original_url: "https://www.programmersought.com/article/14125101739/"
published: "2022-09-29"
language: "en"
likes: 4
views: 2554
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# STM32 W5500 HTTP Client POST method to request/submit network data

> Now I want STM32 W5500 to submit data to the remote server through HTTP Client POST, and receive the JSON format data returned by the servic

Original author: 14125101739 (source: https://www.programmersought.com/article/14125101739/)

## Article

Now I want STM32 W5500 to submit data to the remote server through HTTP Client POST, and receive the JSON format data returned by the service, parse and process it.

To achieve the above functions, several conditions are required:

1. The basic configuration of STM32 W5500,Make PC and W5500 in the same local area network, PC can PING to W5500。

2、The TCP Client of STM32 W5500 can send data successfully, HTTP protocol is a protocol encapsulated based on TCP protocol.

3. The remote server interface can be accessed and can be tested first through the POSTMAN tool.

4. Use the WireShark tool to track the message data of POSTMAN's access to the service interface and the message data returned.

I have the conditions for the basic configuration of STM32 W5500 and TCP Client. Let’s see if the remote server interface can be accessed:

Header part:

![](https://www.programmersought.com/images/156/fac49e3814305b6714e8d1f081265ed4.png)

Request Body and Response Body

![](https://www.programmersought.com/images/482/2ecefc3825bbdbaababcb42177500ec2.png)

The interface returns JSON structure data, indicating that the interface is accessible.

Open the WireShark tool and track the stream data accessed by POSTMAN and the response message data returned by the server.

Request data tracking

![](https://www.programmersought.com/images/104/61ad004bc0d882dca75d92f4d17cdb90.png)

Packet data tracking returned by the interface

![](https://www.programmersought.com/images/693/f5dc2e69110a5d699881ee24fb47746d.png)

The basic preparations have been completed, so the implementation of STM32 W5500 Http Client POST request, due to some sensitive information, has processed the code:

httppost.c

```cpp

```

The main function code of the test:

```cpp

```

The result of the test, parse the body of the message, and print it out through the serial port:

![](https://www.programmersought.com/images/549/b14241f58dcfc98bbbb6428c0c562ffd.png)

Convert through hexadecimal to string and see the result

![](https://www.programmersought.com/images/651/b7a3b05a2fbe29d48fecfda7e7cabe6b.png)

---

Source: https://maker.wiznet.io/teddy/projects/stm32-w5500-http-client-post-method-to-request-submit-network-data/
