【无标题】

记录如何在esp32上使用http post multipart/form-data类型数据(二)

上次发送了一个文本文件,这次研究一下如何发送图片。

先用wireshark中抓包查看postman是如何发送数据的

1、老规矩,先在postman中发送一次

在这里插入图片描述

其中ciphertext为加密后base64编码数据,file是一个txt文件内容是456

2、Wireshark抓包如下图:

整体的formdata如下所示
在这里插入图片描述
文本的Content-Type是 Content-Type:text/plain
图片的是 Content-Type:image/jpeg

3、esp32实现过程

根据以上抓包可以看到如何设置Content-Type和body内容。

3.1、设置Content-Type时加上boundary(边界)

在esp32中,代码如下:

//set Content-Type:multipart/form-data
esp_http_client_set_header(client, "Content-Type",  "multipart/form-data; boundary=--------------------------380152821047278044815818\r\n");

3.2、formdata的内容

在postman中只有两段
在这里插入图片描述

ciphertext对应的数据是加密后base64编码数据Sfo4LaU/lXK0PPwvC6AtUg4NW7D2C07znPDrOP88vcun86abTD+qV/yp+rO3MvPIzWNrKm3NVzybtpzuqZtmVhFlvwgAF4rWSkcov/9maEQ=
file对应的数据是一个123.jpg文件

esp32中需要以下内容描述

--------------------------380152821047278044815818\r\n
Content-Disposition: form-data; name="ciphertext"\r\n\r\n
Sfo4LaU/lXK0PPwvC6AtUg4NW7D2C07znPDrOP88vcun86abTD+qV/yp+rO3MvPIzWNrKm3NVzybtpzuqZtmVhFlvwgAF4rWSkcov/9maEQ=\r\n
--------------------------380152821047278044815818\r\n
Content-Disposition: form-data; name="file"; filename="123.jpg"\r\n
Content-Type: image/jpeg\r\n\r\n
图片二进制数据流\r\n
--------------------------380152821047278044815818--\r\n

4、esp32的代码实现

将3.2节formdata的内容转十六进制,如下

     char post_data1[3000]={
    		0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x44,0x69,0x73,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x66,0x6f,0x72,0x6d,0x2d,0x64,0x61,0x74,0x61,0x3b,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x63,0x69,0x70,0x68,0x65,0x72,0x74,0x65,0x78,0x74,0x22,0x0d,0x0a,0x0d,0x0a,
			0x53,0x66,0x6f,0x34,0x4c,0x61,0x55,0x2f,0x6c,0x58,0x4b,0x30,0x50,0x50,0x77,0x76,0x43,0x36,0x41,0x74,0x55,0x67,0x34,0x4e,0x57,0x37,0x44,0x32,0x43,0x30,0x37,0x7a,0x6e,0x50,0x44,0x72,0x4f,0x50,0x38,0x38,0x76,0x63,0x75,0x6e,0x38,0x36,0x61,0x62,0x54,0x44,0x2b,0x71,0x56,0x2f,0x79,0x70,0x2b,0x72,0x4f,0x33,0x4d,0x76,0x50,0x49,0x7a,0x57,0x4e,0x72,0x4b,0x6d,0x33,0x4e,0x56,0x7a,0x79,0x62,0x74,0x70,0x7a,0x75,0x71,0x5a,0x74,0x6d,0x56,0x68,0x46,0x6c,0x76,0x77,0x67,0x41,0x46,0x34,0x72,0x57,0x53,0x6b,0x63,0x6f,0x76,0x2f,0x39,0x6d,0x61,0x45,0x51,0x3d,0x0d,0x0a,
			0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x44,0x69,0x73,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x66,0x6f,0x72,0x6d,0x2d,0x64,0x61,0x74,0x61,0x3b,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x66,0x69,0x6c,0x65,0x22,0x3b,0x20,0x66,0x69,0x6c,0x65,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x31,0x32,0x33,0x2e,0x6a,0x70,0x67,0x22,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x54,0x79,0x70,0x65,0x3a,0x20,0x69,0x6d,0x61,0x67,0x65,0x2f,0x6a,0x70,0x65,0x67,0x0d,0x0a,0x0d,0x0a,
			0xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x00,0x60,0x00,0x60,0x00,0x00,0xff,0xdb,0x00,0x43,0x00,0x0c,0x08,0x09,0x0a,0x09,0x07,0x0c,0x0a,0x09,0x0a,0x0d,0x0c,0x0c,0x0e,0x11,0x1d,0x13,0x11,0x10,0x10,0x11,0x23,0x19,0x1b,0x15,0x1d,0x2a,0x25,0x2c,0x2b,0x29,0x25,0x28,0x28,0x2e,0x34,0x42,0x38,0x2e,0x31,0x3f,0x32,0x28,0x28,0x3a,0x4e,0x3a,0x3f,0x44,0x47,0x4a,0x4b,0x4a,0x2d,0x37,0x51,0x57,0x51,0x48,0x56,0x42,0x49,0x4a,0x47,0xff,0xdb,0x00,0x43,0x01,0x0c,0x0d,0x0d,0x11,0x0f,0x11,0x22,0x13,0x13,0x22,0x47,0x30,0x28,0x30,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0xff,0xc2,0x00,0x11,0x08,0x00,0x4a,0x00,0x7b,0x03,0x01,0x22,0x00,0x02,0x11,0x01,0x03,0x11,0x01,0xff,0xc4,0x00,0x19,0x00,0x00,0x03,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x01,0x04,0x06,0xff,0xc4,0x00,0x15,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0xda,0x00,0x0c,0x03,0x01,0x00,0x02,0x10,0x03,0x10,0x00,0x00,0x01,0xf5,0x40,0x83,0x89,0x85,0x05,0x06,0x13,0x46,0x11,0xc0,0x5c,0x1c,0x40,0x70,0x03,0x8b,0xa8,0x8e,0x17,0xeb,0x2b,0x92,0xb4,0x63,0x97,0x6f,0xb1,0xcf,0x76,0x2c,0xe2,0xa7,0x49,0x2f,0x15,0x7a,0x0a,0x71,0x03,0x96,0x74,0x88,0x6a,0x83,0x89,0x43,0x31,0x5a,0x1b,0x67,0x5a,0x9b,0x20,0x6e,0xcd,0x8b,0x00,0x5c,0xb7,0x21,0x52,0x1a,0x58,0x8b,0x0f,0xb3,0xc8,0xa9,0x3b,0x58,0xa7,0x3b,0x4b,0x63,0x93,0xa2,0xc7,0x2c,0x29,0x2a,0x84,0x4b,0x04,0x68,0xc1,0x07,0xa0,0x4a,0x9a,0x44,0xf2,0xa5,0x4b,0x68,0x00,0x07,0xff,0xc4,0x00,0x22,0x10,0x00,0x02,0x03,0x00,0x01,0x04,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x00,0x11,0x12,0x03,0x10,0x13,0x21,0x22,0x23,0x31,0x40,0x43,0x20,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x05,0x02,0xfc,0x3a,0x5d,0x06,0x53,0x03,0xa9,0x00,0x82,0x2c,0x4d,0x2e,0xac,0x42,0xca,0x04,0xb1,0x15,0x83,0x40,0xea,0x4a,0xb0,0x6f,0xf1,0xa5,0x77,0x05,0x6b,0x69,0x3e,0xd0,0x80,0x39,0x74,0xaf,0xc9,0x5a,0xe2,0x2e,0x15,0x50,0x0e,0xdd,0x7c,0x4a,0xde,0x7c,0x57,0x15,0xb3,0xf4,0xd0,0x9a,0x13,0x42,0x68,0x4b,0x5b,0xd0,0x84,0xa9,0x1a,0x59,0xa1,0x34,0x26,0x84,0xd0,0x9a,0x13,0x42,0x68,0x4d,0x0e,0x9a,0x21,0x83,0x93,0x34,0x60,0x7f,0x1a,0x3a,0xd1,0xd1,0x79,0x66,0x81,0xb5,0xdf,0xaa,0xb5,0x8d,0x91,0x15,0x89,0x3d,0x40,0x6d,0x65,0xa5,0x36,0x68,0xc2,0x3d,0xbd,0x81,0x03,0xe3,0x2a,0xd4,0x3e,0xb1,0xea,0x14,0xd8,0x56,0xa4,0x5a,0x3d,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0xd3,0xfa,0x2f,0x88,0x20,0x25,0x78,0xe8,0x8e,0x4f,0xea,0x6d,0x94,0xd7,0x6d,0x6f,0x16,0x47,0x12,0x12,0x21,0x25,0x51,0x7d,0x79,0x3a,0x8e,0x35,0x07,0xb6,0x93,0xb6,0xb5,0xdb,0xf3,0x42,0xfb,0x60,0x40,0xa0,0x21,0xe3,0x53,0x07,0x81,0x85,0xa1,0xc6,0xb0,0x71,0xa8,0x8a,0xa1,0x7f,0x1f,0xff,0xc4,0x00,0x14,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0xff,0xda,0x00,0x08,0x01,0x03,0x01,0x01,0x3f,0x01,0x23,0xff,0xc4,0x00,0x14,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0xff,0xda,0x00,0x08,0x01,0x02,0x01,0x01,0x3f,0x01,0x23,0xff,0xc4,0x00,0x2a,0x10,0x00,0x02,0x01,0x03,0x02,0x05,0x03,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x02,0x21,0x31,0x22,0x41,0x10,0x12,0x20,0x51,0x71,0x32,0x61,0x81,0x03,0x40,0x62,0x91,0x42,0x92,0xa1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x06,0x3f,0x02,0xfb,0x1e,0x59,0x53,0xd8,0x70,0xd5,0x89,0x55,0x28,0xf2,0x4a,0x72,0x85,0x7c,0x9c,0xb2,0xa7,0xb1,0x92,0x5d,0x49,0x70,0xc9,0xa5,0xa7,0xe0,0x85,0x52,0x7f,0x26,0x96,0x9f,0x8e,0x8b,0x55,0x4a,0x87,0x65,0xbb,0x65,0x3f,0x8d,0x3a,0x8a,0xbe,0xa3,0x74,0xbc,0x59,0x31,0xc5,0x49,0xba,0xdf,0xf1,0xd8,0xa2,0x10,0xaf,0x4a,0xe5,0x78,0xdd,0x95,0x54,0xd6,0x6e,0x50,0xac,0x9b,0x59,0x62,0x4a,0xea,0x0a,0x92,0xb2,0xe6,0x3d,0x72,0xa6,0xcf,0xb8,0xe8,0xa7,0xea,0x4d,0x3c,0xbf,0xa1,0xbd,0x31,0x11,0xa7,0xae,0x7b,0x70,0x87,0xd7,0x9e,0x8b,0xab,0x33,0xd3,0x9c,0x0d,0x45,0xfc,0x8e,0x76,0x12,0x74,0xe4,0x49,0xac,0x8e,0x14,0xc0,0x9a,0x5f,0xe9,0x23,0x6d,0x44,0x1b,0x7c,0x32,0xf4,0xed,0x24,0x35,0xd1,0xa9,0x2f,0xd9,0xb5,0x95,0x87,0x09,0x27,0xde,0x45,0x4c,0x45,0xc4,0xfb,0x0e,0xa6,0x93,0xf9,0x23,0x76,0x25,0x66,0xb7,0xbf,0x07,0xe6,0x49,0xb6,0x47,0x31,0x2f,0x79,0x26,0x12,0xf6,0x5c,0x72,0x64,0xc9,0x93,0x26,0x4c,0x99,0x32,0x64,0xc9,0x93,0x26,0x4c,0x99,0xe1,0xa5,0xb7,0x1e,0xab,0xd8,0xa7,0x53,0xd4,0xaf,0x72,0xab,0xd4,0xa8,0xf7,0x63,0xcd,0xde,0x99,0x28,0xd4,0xcd,0x2d,0xfe,0x57,0xb1,0x5d,0x5c,0xcd,0x76,0x29,0x97,0x54,0xc6,0x13,0xc8,0xb9,0xb3,0x05,0x57,0x6d,0xf3,0x40,0xd4,0x3c,0xee,0xf0,0x2a,0x95,0x4e,0x6a,0xa4,0xe5,0x96,0xd4,0x6f,0xd1,0x2a,0x7f,0x63,0xb6,0x7d,0xc8,0xd5,0xfd,0x98,0xae,0xed,0xdd,0xc8,0x9f,0x63,0x4c,0xa7,0xe4,0xe5,0xd8,0x59,0xb7,0x67,0xc1,0xa8,0xc9,0x8f,0x73,0x05,0xbe,0xcf,0xff,0xc4,0x00,0x26,0x10,0x01,0x01,0x00,0x02,0x02,0x02,0x01,0x03,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x00,0x21,0x31,0x61,0x51,0xf0,0x41,0x10,0x71,0x91,0x20,0x40,0xa1,0xb1,0x81,0xc1,0xd1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x3f,0x21,0xfd,0x88,0xc8,0x31,0xe6,0xb7,0x8a,0x05,0x3c,0x81,0xe3,0x12,0xb2,0x39,0x4d,0x0c,0x9a,0x5e,0x41,0xcb,0xe8,0x3e,0x46,0xf9,0xc1,0x90,0x63,0xcd,0x6f,0x12,0xb4,0x10,0xae,0xf8,0xc3,0x42,0x1e,0x15,0x9f,0x41,0x2c,0x0c,0xd3,0x81,0x51,0x7c,0xab,0x8d,0x95,0x1c,0x87,0x0c,0x0a,0x8b,0xda,0xfe,0x88,0x25,0x0b,0x61,0x80,0xef,0xa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4,0xcf,0x69,0x9e,0xd3,0x3d,0xa6,0x7b,0x4c,0xf6,0x99,0xed,0x33,0xda,0x67,0xb4,0xcf,0x69,0xf4,0x6e,0xdb,0xa6,0xdf,0x83,0x2e,0xae,0xed,0x4f,0x0e,0xcf,0x19,0x31,0x6a,0x48,0xa5,0xef,0x9d,0xe2,0x4f,0x80,0x5d,0x71,0x0d,0x52,0x24,0x5e,0xb3,0xe1,0x6c,0x5a,0x7f,0x06,0x41,0x01,0xb2,0x3c,0x18,0xd5,0x22,0xd1,0x42,0xb0,0x4c,0xbc,0xc9,0xe7,0x20,0x78,0xc3,0x7b,0x77,0xc6,0x6f,0xa6,0x70,0xb2,0x27,0x9f,0x9c,0x5d,0x04,0x2d,0x69,0x7c,0xe1,0x54,0xee,0x3b,0x5d,0xfe,0x8d,0x08,0xee,0xcb,0x9f,0x8c,0xd4,0x2a,0x08,0xed,0xc7,0x5e,0x33,0x71,0x50,0xf9,0xff,0x00,0xa6,0x00,0x72,0x0a,0xc4,0xdb,0xfc,0xe2,0xc8,0x37,0xc3,0x37,0x15,0xb8,0xf3,0x97,0xed,0x70,0x07,0x8a,0x66,0xc1,0x11,0x0a,0x9f,0xd6,0x08,0x05,0xd7,0x96,0xe2,0x9c,0x42,0xaf,0xdf,0x03,0x36,0xa3,0xb2,0xab,0x72,0x9c,0xe4,0x4d,0xb7,0x2b,0xcb,0xbf,0x2a,0xfe,0xcf,0xff,0xda,0x00,0x0c,0x03,0x01,0x00,0x02,0x00,0x03,0x00,0x00,0x00,0x10,0x70,0xce,0x3c,0xc2,0xc9,0x3c,0x0a,0x00,0x2a,0xc7,0x28,0x30,0xa3,0x01,0x1f,0x58,0x07,0x3c,0x10,0x43,0x22,0x24,0x62,0x4c,0x20,0x87,0x30,0x08,0x04,0x3c,0xff,0xc4,0x00,0x1a,0x11,0x00,0x02,0x02,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x30,0x00,0x41,0x10,0x11,0x20,0xff,0xda,0x00,0x08,0x01,0x03,0x01,0x01,0x3f,0x10,0x5d,0xc1,0xdd,0xa4,0x1c,0x56,0xd5,0xff,0xc4,0x00,0x1b,0x11,0x00,0x01,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x11,0x30,0x20,0x21,0x41,0xff,0xda,0x00,0x08,0x01,0x02,0x01,0x01,0x3f,0x10,0xac,0x8d,0x51,0xcc,0x65,0x16,0x25,0xa5,0x1a,0xbf,0xff,0xc4,0x00,0x25,0x10,0x01,0x00,0x02,0x02,0x02,0x01,0x04,0x02,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x21,0x00,0x31,0x41,0x51,0xf0,0x61,0x71,0x81,0xf1,0x10,0x91,0x20,0x40,0xa1,0xb1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x3f,0x10,0x08,0x20,0xee,0x7f,0xa2,0x08,0x62,0x40,0xc3,0xe3,0x79,0x43,0x7e,0x25,0x7d,0xfd,0x66,0x95,0x6e,0x8f,0xb8,0xf1,0x83,0xdf,0x34,0x64,0xfd,0x98,0x30,0x2d,0x14,0x8a,0xf6,0x77,0x80,0x86,0x24,0x0c,0x3d,0xcd,0xe7,0x67,0x29,0x04,0x3b,0x7a,0x29,0xfd,0x66,0x9c,0x5c,0x61,0xf6,0x5c,0x19,0x24,0xb3,0x0d,0x44,0x25,0x06,0x61,0x36,0x38,0xbc,0xe1,0x84,0x22,0x7e,0x33,0x42,0x13,0x25,0xf7,0x06,0xb1,0x70,0xc3,0x0a,0x20,0x7e,0x3f,0x87,0xa5,0x33,0x48,0x22,0xc7,0x05,0xaf,0x6e,0xeb,0x91,0x10,0x02,0x00,0xa6,0x09,0x0e,0xd4,0xd3,0xd3,0x84,0x03,0x90,0x12,0x2b,0x66,0xa6,0x5d,0xe8,0xf8,0x94,0x60,0xc9,0x46,0x40,0x0c,0x27,0x48,0xcf,0x2f,0x58,0xae,0x70,0x51,0x05,0x0a,0x4b,0xce,0x77,0x41,0x4c,0x88,0xb1,0xc1,0x6f,0xab,0xbf,0x79,0xf2,0x60,0xcc,0xc0,0x21,0x93,0xaa,0x27,0xe5,0xc5,0x6c,0x64,0x14,0x11,0x3b,0xdf,0x15,0xcf,0xa6,0xf0,0xaa,0xa2,0x68,0x86,0x23,0xd9,0xc6,0x9d,0x84,0x8d,0x04,0x4d,0x75,0x18,0x2b,0xe7,0xa6,0x2b,0x20,0x14,0xf2,0x75,0x18,0x45,0xd3,0x9e,0x43,0xe2,0x50,0x6e,0x5a,0x6e,0xb3,0x5b,0x49,0xca,0xe8,0xba,0x81,0x31,0x3f,0x13,0xf9,0xf3,0x8e,0x79,0xc7,0x3c,0x63,0x9e,0x31,0xc5,0x5a,0x49,0x15,0xd4,0xef,0xfe,0x67,0x9c,0x72,0x6a,0x0a,0x02,0x4a,0x7d,0xb0,0x9c,0x00,0x80,0x06,0xb3,0xce,0x39,0xe7,0x1c,0xf1,0x8e,0x78,0xc7,0x3c,0x63,0x9e,0x21,0xcf,0x38,0xe7,0x9c,0x7f,0x0c,0x38,0x00,0x9b,0x20,0xb6,0x45,0x14,0xf2,0xe2,0x95,0x0f,0x1c,0xd0,0x70,0x90,0x43,0x67,0x78,0xe8,0xe9,0x04,0x88,0x66,0x25,0x42,0x34,0xf1,0x94,0x35,0xa8,0x60,0x6a,0x69,0x83,0xbc,0x90,0x09,0x8a,0x82,0x08,0x4c,0x1d,0xff,0x00,0x98,0xac,0x88,0x69,0xb3,0x0b,0x64,0x51,0x4f,0x2e,0x12,0xd0,0x40,0x60,0x17,0x12,0xef,0x82,0xbb,0xde,0xb1,0x17,0x00,0x54,0x3e,0x61,0xc0,0x4e,0x06,0x29,0x37,0x81,0x2a,0x93,0x30,0x55,0xe2,0xf5,0xce,0x11,0x74,0xe1,0xd6,0x3b,0x82,0xf7,0x58,0xc8,0x92,0x02,0x72,0x6c,0x24,0x10,0x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0x59,0xb2,0xe0,0x2f,0x18,0x40,0x15,0x00,0x3a,0xbf,0xdb,0x17,0x2e,0x71,0xdb,0x11,0xb8,0x5a,0x71,0x93,0xa4,0xc5,0x39,0x42,0x8f,0x13,0x65,0x44,0x4e,0x0e,0x44,0xbc,0xab,0xcc,0x59,0x36,0x7d,0x5d,0xfa,0x65,0x3b,0x33,0xf2,0x02,0x01,0xa0,0x17,0x44,0x18,0x8a,0x20,0xbe,0xc9,0x26,0xde,0xfa,0xd5,0x7f,0x09,0xc8,0x92,0xe4,0xcb,0x2e,0xd1,0xb7,0xac,0x08,0xec,0xa2,0x50,0x16,0xcb,0x53,0xd0,0x8c,0x5d,0x84,0x06,0x15,0x08,0xc9,0x0b,0x4b,0xeb,0x12,0x05,0x97,0x04,0x20,0x65,0x31,0x04,0xd7,0xae,0x4c,0xd2,0x69,0x4e,0xa7,0x79,0x6a,0xd4,0x0c,0xa1,0x4b,0x3a,0x1b,0x66,0x32,0x10,0x48,0xaf,0x52,0x44,0x63,0x6c,0x24,0xda,0x61,0x55,0x28,0x9d,0x18,0x28,0x90,0x20,0x91,0x7e,0xdb,0x71,0x43,0xa4,0xa5,0xf9,0x0f,0x0f,0xb6,0x22,0x84,0x82,0x48,0x82,0x4a,0xac,0xb4,0xc5,0xe3,0x1a,0xec,0x84,0x00,0xec,0x05,0x80,0xf4,0x30,0xcb,0x08,0x4a,0xed,0x68,0x95,0x58,0xf4,0xfe,0x9f,0xff,0xd9,0x0d,0x0a,
			0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x2d,0x2d,0x0d,0x0a
    };

post_data1的内容就是body,然后调用esp_http_client_set_post_field设置body:

esp_http_client_set_post_field(client, post_data1, strlen(post_data1));

最后在贴一下整体的代码

void http_test_form_data()
{

	esp_http_client_config_t config = {
			.url = "http://****************/timely/cateye/log/device-active",
			.event_handler = _http_event_handler,
	};
    esp_http_client_handle_t client = esp_http_client_init(&config);
    esp_http_client_set_header(client, "deviceId", "Slock383B26942336\r\n");
    esp_http_client_set_method(client, HTTP_METHOD_POST);
    esp_http_client_set_header(client, "Content-Type",  "multipart/form-data; boundary=--------------------------380152821047278044815818\r\n");

    char post_data1[3000]={
    		0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x44,0x69,0x73,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x66,0x6f,0x72,0x6d,0x2d,0x64,0x61,0x74,0x61,0x3b,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x63,0x69,0x70,0x68,0x65,0x72,0x74,0x65,0x78,0x74,0x22,0x0d,0x0a,0x0d,0x0a,
			0x53,0x66,0x6f,0x34,0x4c,0x61,0x55,0x2f,0x6c,0x58,0x4b,0x30,0x50,0x50,0x77,0x76,0x43,0x36,0x41,0x74,0x55,0x67,0x34,0x4e,0x57,0x37,0x44,0x32,0x43,0x30,0x37,0x7a,0x6e,0x50,0x44,0x72,0x4f,0x50,0x38,0x38,0x76,0x63,0x75,0x6e,0x38,0x36,0x61,0x62,0x54,0x44,0x2b,0x71,0x56,0x2f,0x79,0x70,0x2b,0x72,0x4f,0x33,0x4d,0x76,0x50,0x49,0x7a,0x57,0x4e,0x72,0x4b,0x6d,0x33,0x4e,0x56,0x7a,0x79,0x62,0x74,0x70,0x7a,0x75,0x71,0x5a,0x74,0x6d,0x56,0x68,0x46,0x6c,0x76,0x77,0x67,0x41,0x46,0x34,0x72,0x57,0x53,0x6b,0x63,0x6f,0x76,0x2f,0x39,0x6d,0x61,0x45,0x51,0x3d,0x0d,0x0a,
			0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x44,0x69,0x73,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3a,0x20,0x66,0x6f,0x72,0x6d,0x2d,0x64,0x61,0x74,0x61,0x3b,0x20,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x66,0x69,0x6c,0x65,0x22,0x3b,0x20,0x66,0x69,0x6c,0x65,0x6e,0x61,0x6d,0x65,0x3d,0x22,0x31,0x32,0x33,0x2e,0x6a,0x70,0x67,0x22,0x0d,0x0a,
			0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x54,0x79,0x70,0x65,0x3a,0x20,0x69,0x6d,0x61,0x67,0x65,0x2f,0x6a,0x70,0x65,0x67,0x0d,0x0a,0x0d,0x0a,
			0xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x00,0x60,0x00,0x60,0x00,0x00,0xff,0xdb,0x00,0x43,0x00,0x0c,0x08,0x09,0x0a,0x09,0x07,0x0c,0x0a,0x09,0x0a,0x0d,0x0c,0x0c,0x0e,0x11,0x1d,0x13,0x11,0x10,0x10,0x11,0x23,0x19,0x1b,0x15,0x1d,0x2a,0x25,0x2c,0x2b,0x29,0x25,0x28,0x28,0x2e,0x34,0x42,0x38,0x2e,0x31,0x3f,0x32,0x28,0x28,0x3a,0x4e,0x3a,0x3f,0x44,0x47,0x4a,0x4b,0x4a,0x2d,0x37,0x51,0x57,0x51,0x48,0x56,0x42,0x49,0x4a,0x47,0xff,0xdb,0x00,0x43,0x01,0x0c,0x0d,0x0d,0x11,0x0f,0x11,0x22,0x13,0x13,0x22,0x47,0x30,0x28,0x30,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0xff,0xc2,0x00,0x11,0x08,0x00,0x4a,0x00,0x7b,0x03,0x01,0x22,0x00,0x02,0x11,0x01,0x03,0x11,0x01,0xff,0xc4,0x00,0x19,0x00,0x00,0x03,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x01,0x04,0x06,0xff,0xc4,0x00,0x15,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0xda,0x00,0x0c,0x03,0x01,0x00,0x02,0x10,0x03,0x10,0x00,0x00,0x01,0xf5,0x40,0x83,0x89,0x85,0x05,0x06,0x13,0x46,0x11,0xc0,0x5c,0x1c,0x40,0x70,0x03,0x8b,0xa8,0x8e,0x17,0xeb,0x2b,0x92,0xb4,0x63,0x97,0x6f,0xb1,0xcf,0x76,0x2c,0xe2,0xa7,0x49,0x2f,0x15,0x7a,0x0a,0x71,0x03,0x96,0x74,0x88,0x6a,0x83,0x89,0x43,0x31,0x5a,0x1b,0x67,0x5a,0x9b,0x20,0x6e,0xcd,0x8b,0x00,0x5c,0xb7,0x21,0x52,0x1a,0x58,0x8b,0x0f,0xb3,0xc8,0xa9,0x3b,0x58,0xa7,0x3b,0x4b,0x63,0x93,0xa2,0xc7,0x2c,0x29,0x2a,0x84,0x4b,0x04,0x68,0xc1,0x07,0xa0,0x4a,0x9a,0x44,0xf2,0xa5,0x4b,0x68,0x00,0x07,0xff,0xc4,0x00,0x22,0x10,0x00,0x02,0x03,0x00,0x01,0x04,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x00,0x11,0x12,0x03,0x10,0x13,0x21,0x22,0x23,0x31,0x40,0x43,0x20,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x05,0x02,0xfc,0x3a,0x5d,0x06,0x53,0x03,0xa9,0x00,0x82,0x2c,0x4d,0x2e,0xac,0x42,0xca,0x04,0xb1,0x15,0x83,0x40,0xea,0x4a,0xb0,0x6f,0xf1,0xa5,0x77,0x05,0x6b,0x69,0x3e,0xd0,0x80,0x39,0x74,0xaf,0xc9,0x5a,0xe2,0x2e,0x15,0x50,0x0e,0xdd,0x7c,0x4a,0xde,0x7c,0x57,0x15,0xb3,0xf4,0xd0,0x9a,0x13,0x42,0x68,0x4b,0x5b,0xd0,0x84,0xa9,0x1a,0x59,0xa1,0x34,0x26,0x84,0xd0,0x9a,0x13,0x42,0x68,0x4d,0x0e,0x9a,0x21,0x83,0x93,0x34,0x60,0x7f,0x1a,0x3a,0xd1,0xd1,0x79,0x66,0x81,0xb5,0xdf,0xaa,0xb5,0x8d,0x91,0x15,0x89,0x3d,0x40,0x6d,0x65,0xa5,0x36,0x68,0xc2,0x3d,0xbd,0x81,0x03,0xe3,0x2a,0xd4,0x3e,0xb1,0xea,0x14,0xd8,0x56,0xa4,0x5a,0x3d,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0xd3,0xfa,0x2f,0x88,0x20,0x25,0x78,0xe8,0x8e,0x4f,0xea,0x6d,0x94,0xd7,0x6d,0x6f,0x16,0x47,0x12,0x12,0x21,0x25,0x51,0x7d,0x79,0x3a,0x8e,0x35,0x07,0xb6,0x93,0xb6,0xb5,0xdb,0xf3,0x42,0xfb,0x60,0x40,0xa0,0x21,0xe3,0x53,0x07,0x81,0x85,0xa1,0xc6,0xb0,0x71,0xa8,0x8a,0xa1,0x7f,0x1f,0xff,0xc4,0x00,0x14,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0xff,0xda,0x00,0x08,0x01,0x03,0x01,0x01,0x3f,0x01,0x23,0xff,0xc4,0x00,0x14,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0xff,0xda,0x00,0x08,0x01,0x02,0x01,0x01,0x3f,0x01,0x23,0xff,0xc4,0x00,0x2a,0x10,0x00,0x02,0x01,0x03,0x02,0x05,0x03,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x02,0x21,0x31,0x22,0x41,0x10,0x12,0x20,0x51,0x71,0x32,0x61,0x81,0x03,0x40,0x62,0x91,0x42,0x92,0xa1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x06,0x3f,0x02,0xfb,0x1e,0x59,0x53,0xd8,0x70,0xd5,0x89,0x55,0x28,0xf2,0x4a,0x72,0x85,0x7c,0x9c,0xb2,0xa7,0xb1,0x92,0x5d,0x49,0x70,0xc9,0xa5,0xa7,0xe0,0x85,0x52,0x7f,0x26,0x96,0x9f,0x8e,0x8b,0x55,0x4a,0x87,0x65,0xbb,0x65,0x3f,0x8d,0x3a,0x8a,0xbe,0xa3,0x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xff,0xc4,0x00,0x26,0x10,0x01,0x01,0x00,0x02,0x02,0x02,0x01,0x03,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x00,0x21,0x31,0x61,0x51,0xf0,0x41,0x10,0x71,0x91,0x20,0x40,0xa1,0xb1,0x81,0xc1,0xd1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x3f,0x21,0xfd,0x88,0xc8,0x31,0xe6,0xb7,0x8a,0x05,0x3c,0x81,0xe3,0x12,0xb2,0x39,0x4d,0x0c,0x9a,0x5e,0x41,0xcb,0xe8,0x3e,0x46,0xf9,0xc1,0x90,0x63,0xcd,0x6f,0x12,0xb4,0x10,0xae,0xf8,0xc3,0x42,0x1e,0x15,0x9f,0x41,0x2c,0x0c,0xd3,0x81,0x51,0x7c,0xab,0x8d,0x95,0x1c,0x87,0x0c,0x0a,0x8b,0xda,0xfe,0x88,0x25,0x0b,0x61,0x80,0xef,0xa4,0x79,0xf1,0xd3,0x84,0x93,0x18,0x91,0x9e,0x2e,0x08,0x19,0x35,0xaa,0x7a,0x0c,0x7a,0x01,0xde,0xe7,0x58,0x1a,0x08,0x92,0x8a,0x64,0x07,0x3b,0x8b,0xf1,0xe3,0x2d,0x4d,0x55,0x60,0x18,0x35,0x8d,0x6b,0xe7,0x34,0xd6,0x1b,0xeb,0x82,0xe3,0xb3,0xf1,0x70,0x1e,0x3c,0x6b,0x0a,0xae,0x95,0x75,0xfd,0x71,0x7c,0x0c,0x6c,0xa7,0xe7,0xeb,0xdf,0x9d,0xf9,0xdf,0x9d,0xf8,0xa9,0x5c,0xf0,0xce,0xfc,0x54,0x9a,0x48,0xe0,0x04,0x1d,0x19,0xdf,0x9d,0xf9,0xdf,0x9d,0xf9,0xdf,0xf4,0xdd,0xf9,0xdf,0xf4,0x48,0x04,0x48,0x37,0x24,0x58,0x8b,0xb7,0x38,0x55,0x0c,0x83,0xad,0x33,0x66,0x63,0xce,0x37,0x0d,0x4c,0x8e,0x6e,0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,0xc8,0x37,0xc3,0x37,0x15,0xb8,0xf3,0x97,0xed,0x70,0x07,0x8a,0x66,0xc1,0x11,0x0a,0x9f,0xd6,0x08,0x05,0xd7,0x96,0xe2,0x9c,0x42,0xaf,0xdf,0x03,0x36,0xa3,0xb2,0xab,0x72,0x9c,0xe4,0x4d,0xb7,0x2b,0xcb,0xbf,0x2a,0xfe,0xcf,0xff,0xda,0x00,0x0c,0x03,0x01,0x00,0x02,0x00,0x03,0x00,0x00,0x00,0x10,0x70,0xce,0x3c,0xc2,0xc9,0x3c,0x0a,0x00,0x2a,0xc7,0x28,0x30,0xa3,0x01,0x1f,0x58,0x07,0x3c,0x10,0x43,0x22,0x24,0x62,0x4c,0x20,0x87,0x30,0x08,0x04,0x3c,0xff,0xc4,0x00,0x1a,0x11,0x00,0x02,0x02,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x30,0x00,0x41,0x10,0x11,0x20,0xff,0xda,0x00,0x08,0x01,0x03,0x01,0x01,0x3f,0x10,0x5d,0xc1,0xdd,0xa4,0x1c,0x56,0xd5,0xff,0xc4,0x00,0x1b,0x11,0x00,0x01,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x11,0x30,0x20,0x21,0x41,0xff,0xda,0x00,0x08,0x01,0x02,0x01,0x01,0x3f,0x10,0xac,0x8d,0x51,0xcc,0x65,0x16,0x25,0xa5,0x1a,0xbf,0xff,0xc4,0x00,0x25,0x10,0x01,0x00,0x02,0x02,0x02,0x01,0x04,0x02,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,0x21,0x00,0x31,0x41,0x51,0xf0,0x61,0x71,0x81,0xf1,0x10,0x91,0x20,0x40,0xa1,0xb1,0xff,0xda,0x00,0x08,0x01,0x01,0x00,0x01,0x3f,0x10,0x08,0x20,0xee,0x7f,0xa2,0x08,0x62,0x40,0xc3,0xe3,0x79,0x43,0x7e,0x25,0x7d,0xfd,0x66,0x95,0x6e,0x8f,0xb8,0xf1,0x83,0xdf,0x34,0x64,0xfd,0x98,0x30,0x2d,0x14,0x8a,0xf6,0x77,0x80,0x86,0x24,0x0c,0x3d,0xcd,0xe7,0x67,0x29,0x04,0x3b,0x7a,0x29,0xfd,0x66,0x9c,0x5c,0x61,0xf6,0x5c,0x19,0x24,0xb3,0x0d,0x44,0x25,0x06,0x61,0x36,0x38,0xbc,0xe1,0x84,0x22,0x7e,0x33,0x42,0x13,0x25,0xf7,0x06,0xb1,0x70,0xc3,0x0a,0x20,0x7e,0x3f,0x87,0xa5,0x33,0x48,0x22,0xc7,0x05,0xaf,0x6e,0xeb,0x91,0x10,0x02,0x00,0xa6,0x09,0x0e,0xd4,0xd3,0xd3,0x84,0x03,0x90,0x12,0x2b,0x66,0xa6,0x5d,0xe8,0xf8,0x94,0x60,0xc9,0x46,0x40,0x0c,0x27,0x48,0xcf,0x2f,0x58,0xae,0x70,0x51,0x05,0x0a,0x4b,0xce,0x77,0x41,0x4c,0x88,0xb1,0xc1,0x6f,0xab,0xbf,0x79,0xf2,0x60,0xcc,0xc0,0x21,0x93,0xaa,0x27,0xe5,0xc5,0x6c,0x64,0x14,0x11,0x3b,0xdf,0x15,0xcf,0xa6,0xf0,0xaa,0xa2,0x68,0x86,0x23,0xd9,0xc6,0x9d,0x84,0x8d,0x04,0x4d,0x75,0x18,0x2b,0xe7,0xa6,0x2b,0x20,0x14,0xf2,0x75,0x18,0x45,0xd3,0x9e,0x43,0xe2,0x50,0x6e,0x5a,0x6e,0xb3,0x5b,0x49,0xca,0xe8,0xba,0x81,0x31,0x3f,0x13,0xf9,0xf3,0x8e,0x79,0xc7,0x3c,0x63,0x9e,0x31,0xc5,0x5a,0x49,0x15,0xd4,0xef,0xfe,0x67,0x9c,0x72,0x6a,0x0a,0x02,0x4a,0x7d,0xb0,0x9c,0x00,0x80,0x06,0xb3,0xce,0x39,0xe7,0x1c,0xf1,0x8e,0x78,0xc7,0x3c,0x63,0x9e,0x21,0xcf,0x38,0xe7,0x9c,0x7f,0x0c,0x38,0x00,0x9b,0x20,0xb6,0x45,0x14,0xf2,0xe2,0x95,0x0f,0x1c,0xd0,0x70,0x90,0x43,0x67,0x78,0xe8,0xe9,0x04,0x88,0x66,0x25,0x42,0x34,0xf1,0x94,0x35,0xa8,0x60,0x6a,0x69,0x83,0xbc,0x90,0x09,0x8a,0x82,0x08,0x4c,0x1d,0xff,0x00,0x98,0xac,0x88,0x69,0xb3,0x0b,0x64,0x51,0x4f,0x2e,0x12,0xd0,0x40,0x60,0x17,0x12,0xef,0x82,0xbb,0xde,0xb1,0x17,0x00,0x54,0x3e,0x61,0xc0,0x4e,0x06,0x29,0x37,0x81,0x2a,0x93,0x30,0x55,0xe2,0xf5,0xce,0x11,0x74,0xe1,0xd6,0x3b,0x82,0xf7,0x58,0xc8,0x92,0x02,0x72,0x6c,0x24,0x10,0xd9,0xde,0x08,0x34,0x2c,0x74,0x66,0x2e,0x0e,0xbf,0x82,0xa5,0x98,0x13,0xca,0x68,0x28,0x38,0xe7,0x02,0x70,0xb8,0x8a,0xc9,0x20,0x5a,0xad,0x6a,0xf1,0x7b,0x10,0xb2,0x2e,0xd2,0xb4,0xaf,0x7c,0xb0,0xb7,0x29,0xca,0x17,0x6a,0x16,0xb1,0xfe,0xe1,0x2d,0x36,0x27,0x76,0x62,0xe0,0x4a,0x20,0x38,0x1f,0x03,0x9b,0xc1,0xb1,0x70,0x9f,0x93,0xfe,0xe4,0x47,0x0a,0xa4,0xd5,0x16,0x0c,0x9b,0xac,0xe0,0x21,0x62,0x90,0xf6,0x60,0xc9,0xa2,0xec,0x73,0x1b,0x10,0x7f,0x58,0x15,0x06,0x94,0x90,0x08,0x48,0xc1,0x7e,0xbd,0x60,0x0c,0xdc,0x55,0x4f,0xa1,0x08,0x3d,0x07,0x25,0x65,0x09,0x0a,0x2f,0x6d,0x17,0xc7,0xe7,0xcf,0xed,0x9e,0x7f,0x6c,0xf3,0xfb,0x67,0x9f,0xdb,0x3c,0xfe,0xd9,0xe7,0xf6,0xcf,0x1f,0xb6,0x79,0xfd,0xb3,0xcf,0xed,0x9e,0x7f,0x6c,0xf3,0xfb,0x67,0x9f,0xdb,0xf1,0xbc,0xfe,0xd9,0xe7,0xf6,0xcf,0x3f,0xb7,0xe2,0x29,0xe9,0x24,0x88,0x21,0x82,0x6a,0x66,0x35,0x64,0x5e,0xed,0x33,0x9b,0xc8,0x14,0x0c,0x0c,0x90,0x97,0x55,0x86,0x5d,0x99,0x14,0x9b,0x90,0xa8,0x0d,0x1f,0xe9,0xda,0x32,0x85,0x80,0x19,0x80,0x99,0xbd,0xcb,0x76,0x1d,0x68,0x91,0xf6,0xca,0x94,0x2d,0xe5,0x7d,0xe7,0x21,0x5e,0xfd,0x02,0x08,0x60,0x1a,0x99,0x8d,0x59,0x17,0xbb,0x7b,0xfd,0xc7,0x81,0x1d,0xea,0x59,0xb2,0xe0,0x2f,0x18,0x40,0x15,0x00,0x3a,0xbf,0xdb,0x17,0x2e,0x71,0xdb,0x11,0xb8,0x5a,0x71,0x93,0xa4,0xc5,0x39,0x42,0x8f,0x13,0x65,0x44,0x4e,0x0e,0x44,0xbc,0xab,0xcc,0x59,0x36,0x7d,0x5d,0xfa,0x65,0x3b,0x33,0xf2,0x02,0x01,0xa0,0x17,0x44,0x18,0x8a,0x20,0xbe,0xc9,0x26,0xde,0xfa,0xd5,0x7f,0x09,0xc8,0x92,0xe4,0xcb,0x2e,0xd1,0xb7,0xac,0x08,0xec,0xa2,0x50,0x16,0xcb,0x53,0xd0,0x8c,0x5d,0x84,0x06,0x15,0x08,0xc9,0x0b,0x4b,0xeb,0x12,0x05,0x97,0x04,0x20,0x65,0x31,0x04,0xd7,0xae,0x4c,0xd2,0x69,0x4e,0xa7,0x79,0x6a,0xd4,0x0c,0xa1,0x4b,0x3a,0x1b,0x66,0x32,0x10,0x48,0xaf,0x52,0x44,0x63,0x6c,0x24,0xda,0x61,0x55,0x28,0x9d,0x18,0x28,0x90,0x20,0x91,0x7e,0xdb,0x71,0x43,0xa4,0xa5,0xf9,0x0f,0x0f,0xb6,0x22,0x84,0x82,0x48,0x82,0x4a,0xac,0xb4,0xc5,0xe3,0x1a,0xec,0x84,0x00,0xec,0x05,0x80,0xf4,0x30,0xcb,0x08,0x4a,0xed,0x68,0x95,0x58,0xf4,0xfe,0x9f,0xff,0xd9,0x0d,0x0a,
			0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x33,0x38,0x30,0x31,0x35,0x32,0x38,0x32,0x31,0x30,0x34,0x37,0x32,0x37,0x38,0x30,0x34,0x34,0x38,0x31,0x35,0x38,0x31,0x38,0x2d,0x2d,0x0d,0x0a
    };
    esp_http_client_set_post_field(client, post_data1, 2814);
    esp_err_t err  = esp_http_client_perform(client);
    if (err == ESP_OK) {
            ESP_LOGI(TAG, "HTTP POST Status = %d, content_length = %d",
                    esp_http_client_get_status_code(client),
                    esp_http_client_get_content_length(client));
        } else {
            ESP_LOGE(TAG, "HTTP POST request failed: %s", esp_err_to_name(err));
        }
    esp_http_client_cleanup(client);
}
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值