0% found this document useful (0 votes)
11 views1 page

Programming-Arduino (1) - Pages-178

Uploaded by

axl1994
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Programming-Arduino (1) - Pages-178

Uploaded by

axl1994
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

You will learn how to run a local Web server and also make outgoing Web

requests to Internet services using both of these types of board. Finally, some
other options like the Particle Photon and Arduino Yun will be briefly described.

Communicating with Web Servers


Before looking at how the Arduino deals with communication between a
browser and the Web server that it uses, you need some understanding of the
Hypertext Transfer Protocol (HTTP) and the Hypertext Markup Language
(HTML).

HTTP
The Hypertext Transport Protocol is the method by which Web browsers
communicate with a Web server.
When you go to a page using a Web browser, the browser sends a request to
the server hosting that page, saying what it wants. What the browser asks for
may be simply the contents of a page in HTML. The Web server is always
listening for such requests, and when it receives one, it processes it. In this
simple case, processing the request just means sending back HTML that you
have specified in the Arduino sketch.

HTML
The Hypertext Markup Language is a way of adding formatting to ordinary text
so that it looks good when the browser displays it. For example, the following
code is HTML that displays on a browser page as shown in Figure 10-2 :

You might also like