管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
+ M0 F Q- W, n- F; s1 Q9 }0 L+ k7 E! {) u9 e" ] O/ R
$opts = array (
4 B' |# \; q* W U' \% X8 Y3 _ 'http' => array (5 N9 J9 E! R; b4 h1 [) T% R8 Q5 R
'method' => 'POST',
& J+ B- M3 `5 i3 v! m6 X! w' ? 'header'=> "Content-type: application/x-www-form-urlencodedrn",! @- J6 t, u9 C4 O# {: v$ E1 c
"Content-Length: " . strlen($data) . "rn",
" \' c2 U/ p4 \ 'content' => $postdata, s( S. L. ^/ Q, L
)
0 u- D1 x* }3 z K );6 D; k, K# W# V1 q$ E0 h3 L6 k
0 w4 ]6 Z- ^& k $context = stream_context_create($opts);+ e$ ]1 b8 X( y) `+ j9 q5 o9 M# f( N1 D
$html = file_get_contents($url, false, $context);
" m8 b3 {/ `6 k- w# @: u! m2 Z& e* E/ M2 {7 D) ?
|
|