Interface format of PHP interface

in the process of docking, the other party is required to say: parameter format: FORM-DATA

I try the request with some CURL and post classes, but they all match. I don"t know how to send parameters in this format.

is there any relevant encapsulation function that can be shared

Jul.24,2021

if your post data is an array, curl will automatically send it as FORM-DATA. For details, please see the official manual: http://php.net/manual/zh/func.

.
HTTP "POST"  @  ';type=mimetype'   urlencoded 'para1=val1&para2=val2&...' valueContent-Typemultipart/form-data  PHP 5.2.0  @ value   PHP 5.5.0 , @  CURLFile   CURLOPT_SAFE_UPLOAD  TRUE  @ 
Menu