管理员
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
+ H6 b8 A K6 }, g! @5 e2 T3 n+ }+ h7 T, A; K' f9 e: g
$opts = array (( F+ ~) B2 U# a) S8 N4 H3 A- f3 R
'http' => array (0 m1 c6 j& q+ d5 w& K
'method' => 'POST',7 X& N+ S6 m% u
'header'=> "Content-type: application/x-www-form-urlencodedrn",: [+ L" z* O; S, y8 s
"Content-Length: " . strlen($data) . "rn",
! E( E9 p/ P: [1 N6 R( H+ L/ K: x7 }: [ 'content' => $postdata: F, p9 k6 V% `2 K. ]" x
)* p! F4 ~2 |* s' ?) s
);
" D/ r) O( V& d* W Y0 S! _9 I ]$ `( d2 j5 d
$context = stream_context_create($opts);1 r5 i! _" u+ ^& b/ u# V# W# T% _
$html = file_get_contents($url, false, $context); 1 {/ M$ A. u$ F. s; b$ Z
( b; z- ? V, G6 \& L1 q+ O( \
|
|