Get direct fetch data, post inject server, for server security or get
And because get is the message, password account can be seen at a glance, even if the encryption can be easily cracked, so pass the password with post even if the server is not secure.
Network programming
Third party: ASI most powerful, HTTP terminator, unfortunately not updated
AFN Simple Application
URL Uniform Resource Locator: Includes: protocol, domain name, port number (specific address)
URI Uniform Resource Identifier
Request method
Get: The server directly to come, clear text, pass the amount of data small,
Post: Inject the server, but the server is not secure, the account password private best use it
A word gai
Get direct fetch data, post inject server, for server security or get
And because get is the message, password account can be seen at a glance, even if the encryption can be easily cracked, so pass the password with post even if the server is not secure.
Method order for opening HTML:
Local localhost
sudo apachectl start
1, 1
Create other click Empty to create a file named Testnet.html with the following content
<title>jeredu</title>
<body>
My first web
</body>
1, 2
Two A is hypertext link, on the page display get, click Get jump to the URL and assign value name=zhangsan&pwd=123 similar to the value of the Interfax
Create other click Empty to create a file named S.html with the following content
<title>get</title>
<body>
<a href= "http://localhost/testNet.html?name=zhangsan&pwd=123" >get </a>
</body>
2.1 Open terminal
Last Login:thu June 09:25:10 on ttys006
zhangxindemacbook-pro:~ zhangxin$ sudo apachectl start
Password:
/system/library/launchdaemons/org.apache.httpd.plist:operation already in progress
Enter the IP address;
Http://IP Address
Show it works! Network Normal can send request
2.2
Open the hard disk, select the Repository, document under the Webserver folder, drag the new HTML file into this folder and authenticate
POST:
Post <form> form submission <tr> line, a few lines, a few TR, the line has a column "TD", a row can also have multiple columns
Post.html
<title>
Post
</title>
<body>
<form action= "http://localhost/testNet.html" method= "POST" >
<table style= "width: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"/>
</form>
</body>
The difference between ios-html-get/post, Word (MS) Checkst