ios-html-get/post差额,简而言之(MS)CheckST

get直接采取拉数据,post注射剂server。至server安全或使用get

而且由于get明确传递,password帐户A眼可以看得出来,甚至加密也可以很easy解,所以传password用post即使对server不安全。





网络编程

第三方:ASI最强大。http终结者,可惜不更新

AFN简单应用

URL统一资源定位符:包含:协议、域名、port号(详细地址)

URI统一资源标示符


请求方法

get:server直接拿过来,明文传。传的数据量小,

post:注入server。但对server不安全,账号password私密的最好用它


一句话gai

get直接拽拿数据,post注入server。为了server的安全还是用get

而由于get是明文传,password账号一眼就能看出来,即使加密也能够非常easy的破解。所以传password用post即使对server不安全。





打开html的方法顺序:


本地localhost


sudo apachectl start



1、1

创建other点击EMPTY创建名字为testNet.html的文件,内容例如以下


<html>

    <head></head>

    <title>jeredu</title>

    

    

    <body>

        my first web

    </body>

    

    

</html>


1、2

两个a之间是超文本链接,在网页显示get,点击get跳转到该网址并赋值name=zhangsan&pwd=123类似明文传值


创建other点击EMPTY创建名字为s.html的文件,内容例如以下


<html>

    <head></head>

    <title>get</title>



    <body>

       <a href="http://localhost/testNet.html?name=zhangsan&pwd=123">get </a>

    </body>



</html>


2.1打开终端

Last login: Thu Jun 11 09:25:10 on ttys006

zhangxindeMacBook-Pro:~ zhangxin$ sudo apachectl start

Password:

/System/Library/LaunchDaemons/org.apache.httpd.plist: Operation already in progress


输入IP地址。

http://IP地址

显示It Works!网络正常能够发送请求


2.2

打开硬盘。选择资源库,WebServer目录下的Documents。将新建的html文件拖入此目录并鉴定就可以



POST:

post <form>表单提交 <tr>行。有几行,几个tr。行里面有列《td》,一行也能够有多列


post.html

<html>

    <head>

       <title>

          post

       </title>

    </head>

    <body>

           <form action="http://localhost/testNet.html" method="POST">

               

               <table style="300px;margin:0 auto">

                   <tr>

                       <td >userName:</td>

                       <td><input type="text" name="userName"/></td>

                   </tr>

                   

                   <tr>

                       <td>passWorld:</td>

                       <td><input type="password" name="psw"/></td>

                   </tr>

               

               </table>

               

               <input type="submit" value="submit" style="margin:100 0 0 450" />

           </form>

   

    </body>

</html>

版权声明:本文博主原创文章,博客,未经同意不得转载。

原文地址:https://www.cnblogs.com/zfyouxi/p/4881730.html