How to send image files and other data through http post in C++
伊谢尔伦
伊谢尔伦 2017-05-31 10:39:33
0
3
1106

Request method: post

Request content:

station_num 机器编号
station_pic 机器照片(图片文件)
station_time 照片拍摄的时间戳

I work in PHP, and I can only write local code in C. He won't send this request, saying there is a problem here, there is a problem there, so I have no choice but to ask and throw the code to him when the time comes. It breaks my heart

Please tell me how to write this code, please post the code

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
给我你的怀抱

You can use the libcurl library for http processing. There are many specific usages online, and the information on the official website is also very detailed https://curl.haxx.se/libcurl/...

大家讲道理

github

Just choose the one you like.

淡淡烟草味

It is recommended to use cURL, which is currently widely used and supports multiple protocols. Both http and https can be implemented more easily.
Post the curl code address: https://github.com/curl/curl

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template