管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
7 R9 {* H8 t* \# ~) a: C
" @2 y/ y0 L, [- M $opts = array (* I3 [/ ?8 M6 @ ~9 m: N. M9 V
'http' => array (. Q% U0 }3 {% n* Q2 k, C2 _
'method' => 'POST',
( i' P9 {% `6 L 'header'=> "Content-type: application/x-www-form-urlencodedrn",% F9 e: {* E8 N" T
"Content-Length: " . strlen($data) . "rn"," r3 s* B9 W, u) m/ b" o
'content' => $postdata
' R) [- R* R, R. R2 C; ~ )# z, K8 T, F8 g9 ]2 N- _1 _
);6 R7 u* B3 {3 y$ t
9 Z# D% d: ? e3 Q6 U. z0 q6 e
$context = stream_context_create($opts);" k, S0 D2 ?+ d1 U
$html = file_get_contents($url, false, $context);
: ]2 F' G# C& ?# m* @- L% P
" z# d" Q2 C) f7 D |
|