'13888888888', 'password' => '123456' ); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); echo "Login API Response:\n"; echo $result; echo "\n\nHTTP Response Headers:\n"; print_r($http_response_header); ?>