复制代码 代码如下:
curl_setopt( $ch, CURLOPT_POSTFIELDS,$post_data);
复制代码 代码如下:
<?php print_r($_SERVER);?>
复制代码 代码如下:
[CONTENT_TYPE] => multipart/form-data; boundary=—————————-f924413ea122
复制代码 代码如下:
[CONTENT_TYPE] => application/x-www-form-urlencoded
复制代码 代码如下:
The full data to post in a HTTP “POST” operation. To post a file, prepend a filename with @ and use the full path. This can either be passed as a urlencoded string like ‘para1=val1¶2=val2&…' or as an array with the field name as key and field data as value. If value is an array, the Content-Type header will be set to multipart/form-data.
新闻热点
疑难解答