管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
1 i) K5 t% m3 g1 Q+ e7 H# ~& T5 V# S- F6 P6 Z
$opts = array (" S4 c1 C/ @. B w$ Z6 \( G' a4 ]7 R4 ]
'http' => array (
2 \6 q, t J& s" c: b2 } 'method' => 'POST',
1 v" b' K" ]7 I, _/ B# b+ E+ S, L 'header'=> "Content-type: application/x-www-form-urlencodedrn",- W$ e. Q B" h7 @8 e" ]
"Content-Length: " . strlen($data) . "rn",
c) G7 e- x: R% M 'content' => $postdata5 S7 z9 J0 ^% r" |
)0 P# E2 J5 E1 V& u; G3 H
);/ J4 w1 A6 D7 \" K! `& n
) I% t2 e. I, V4 _
$context = stream_context_create($opts);9 m) A0 s. S$ a1 }6 `
$html = file_get_contents($url, false, $context); 6 H3 `) V" F9 m0 G9 p
1 t6 y2 {# ]* ^4 u
|
|