Android Lao Luo video note-http-1

Source: Internet
Author: User
Tags ftp protocol

---restore content starts---

Here are the notes to see the old Luo video:

(All pictures from Lao Luo video)

One, Lao Luo video tutorial Ideas: Introduction to Android--Baidu map--The common UI layout of the introduction--Common UI controls. (App Development control: HTTP protocol programming to learn about the interaction between the server and Android.) )

Second, www is an application of Internet as the medium of transmission, the basic transmission unit of WWW is Web page. B-S structure. The work of WWW is based on the client/server computing model (Java EE). Consists of a Web browser and a Web server that communicate using Hypertext Transfer Protocol HTTP.

HTTP protocol is a protocol based on TCP/IP protocol, and is the application layer protocol between Web browser and Web server, and is a general and stateless object-oriented protocol.

Thirdly, if we want to realize network interconnection, we need to think of two technical problems to be solved:

1. What is the connection between the browser (client) and server (server side)?

2, how is this connection method implemented?

Four, through the Internet to send to the server, and the Internet within the three ways to achieve the delivery of information and data.

1, HTTP protocol, the most commonly used in the work, based on the implementation of TCP/IP.

2.FTP protocol (file download)

3, the TCP/IP protocol, the most basic protocol, the other way must pass it, but to realize this kind of protocol must implement socket programming (socket is divided into client and server side). This method is used to upload some of the larger files, video, the operation of the breakpoint continued to pass.

The contents of the GET request are placed in the address bar and the POST request is theoretically not limited in size.

Example:

Jsp:

<form name= "name" action= "<%=path%>/servlet/loginaction (path)" method= "post" > Form

User name: <input type= "text" name= "username" value= "/><br/>

Password: <input type= "password" name= "password" value= "/><br/>

<input type= "Submit" name= "Submit" value= "Submission Form"/><br/>

Release the project.

The servlet (JSP page gets the content. for servlet processing):

DoPost: Receiving Requests

PrintWriter out = Response.getwriter ();

String username = request.getparameter ("username");

String pswd = request.getparameter ("password");//The right side of the method is to get the value of the key.

Here are some ways to do this.

HttpWatch Browse through some of the content inside the HTTP protocol. Direct installation is added to the browser.

Network current status information.

The status code of the statuscode request.

Cookies:sessionid (server-side generation is returned to the client): Determines whether the same user.

(All pictures from Lao Luo video)

--Restore content End---

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.