zoukankan      html  css  js  c++  java
  • 学习笔记:javaweb 测试代码

    留下今天写的用来抓包分析post和get的简单的登陆代码,方便以后用来测试别的功能。

     1 <body>
     2 <form method="POST" >
     3    Login Name: <input type="text" name="Name"><br>
     4    Login Password: <input type="text" name="Password" ><br>
     5    <input type="submit" value="Send"><br>
     6   </form>
     7 
     8   <%
     9  if (request.getParameter("Name") != null 
    10   && request.getParameter("Password") != null) {  
    11           String Name = request.getParameter("Name");
    12           String Password = request.getParameter("Password");
    13           
    14           if (Name.equals("xueshi") &&Password.equals("biubiubiu")) {
    15              out.println("hi~noob!");
    16          }
    17          else {   
    18              %>
    19               登录失败:用户名或密码不正确~
    20               <%  
    21           }
    22           }
    23           
    24 %>
    25 </body>
  • 相关阅读:
    python字符串字典列表互转
    列表迭代器 ListIterator
    并发修改异常处理
    二月天 案例
    Calendar类
    Date类
    冒泡排序
    内部类
    python第三天
    Layui——checkbox使用
  • 原文地址:https://www.cnblogs.com/FightingMan/p/6227564.html
Copyright © 2011-2022 走看看