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伐。
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/...
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