<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*"%>
<html>
<body bgcolor=cyan>
<font size=5>
<br>老耿現(xiàn)在使用的協(xié)議是:
<% String protocol=request.getProtocol();
out.println(protocol);
%>
</body>
</html>
這個是獲取你的協(xié)議的方法。
還有的方法是
1.讀萬卷書
2.行千里路
3.閱人無數(shù)
<%@ page import="java.util.*"%>
<html>
<body bgcolor=cyan>
<font size=5>
<br>老耿現(xiàn)在使用的協(xié)議是:
<% String protocol=request.getProtocol();
out.println(protocol);
%>
</body>
</html>
這個是獲取你的協(xié)議的方法。
還有的方法是
getProtocol(),getServletPath(), getContentLength(), getMethod(), getRemoteAddr(), getRemoteHost(), getServerName(), getParameterName()
1.讀萬卷書
2.行千里路
3.閱人無數(shù)