管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);$ u, L, H5 L+ X, C
6 h6 h1 B0 }: j: F7 Z& H
$opts = array (
) D. B+ f5 s3 X; M) q2 I# Q# j 'http' => array (4 P: v( I( p' C0 o, J: K
'method' => 'POST',( V3 t2 V1 P% S X
'header'=> "Content-type: application/x-www-form-urlencodedrn",# A. |+ v7 M* S5 y; y; {
"Content-Length: " . strlen($data) . "rn",
5 @4 d8 @- |6 Z$ |# C/ ` 'content' => $postdata
8 k( e1 P; ^" \! j" d$ S- e )" U/ {% c) a+ |9 E. |
);
% G: z3 y6 h0 Y+ ^7 c. j" u' e
$context = stream_context_create($opts);& }1 w. Z9 J+ o& V9 k
$html = file_get_contents($url, false, $context);
. I0 u5 L/ b. A3 t- G M3 h1 z( y0 k% Q+ X) a
|
|