管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
$ s' ?" P8 O# k! I% L
. V+ C4 }/ u, h $opts = array (( K4 p* i4 W! N$ f: q4 P
'http' => array (
" c' {# ]5 y2 l) S+ \ 'method' => 'POST',
/ e s7 \0 n: E, \* ^# h, ?) B 'header'=> "Content-type: application/x-www-form-urlencodedrn",# n M9 m: s3 |2 p/ h' o9 _
"Content-Length: " . strlen($data) . "rn",$ D3 \7 t4 f' d, t6 X& T
'content' => $postdata& h. |3 M% ^ |/ S i; s% T
)- W% Q/ I! P2 m$ @2 y% X# k
);
3 r) q e* s! @9 t, r" d9 c
6 n6 Y4 a. P' m- r; T+ j, l* } $context = stream_context_create($opts);9 T e2 i4 a7 X
$html = file_get_contents($url, false, $context);
% C' X5 [/ X; s; ^. a9 F* t# `: ~3 H" \
|
|