我有一个网络服务器,我想在某些条件下拥有HTTP状态代码418'我是一个茶壶',我相信我会使用if语句,我似乎无法让它去旅行,任何帮助?
小智 28
<?php
header("HTTP/1.1 418 I'm a teapot");
?>
<html>
<h1>418 I'm a teapot</h1><br>
<p>The HTCPCP Server is a teapot. The responding entity MAY be short and stout.</p>
</html>
Run Code Online (Sandbox Code Playgroud)
将导致:
HTCPCP服务器是一个茶壶.响应实体可能很短而粗壮.
| 归档时间: |
|
| 查看次数: |
4845 次 |
| 最近记录: |