Transmitting And Receiving Html Data; Operating As Http Client Using Wizfi210 Functions; Communicating With Web Server Using Normal Http - Wiznet WizFi210 Programmer's Manual

Hide thumbs Also See for WizFi210:
Table of Contents

Advertisement

8. Transmitting and Receiving HTML Data

There are two method to transmit and receive HTML data. One is using WizFi210 with built-in
capabilities, and the other is to have users' host processor parse received HTML data and make
HTML data to send to the peer system under the condition which WizFi210 just operates as
communication device, we call this mode "Emulating".
You can see two sections to describe how to implement and use these two methods.

8.1. Operating as HTTP Client using WizFi210 functions

As described above, WizFi210 has capabilities to support HTTP Client. If you want to make
WizFi210 operate as HTTP Server, you can just implement it with emulation of HTTP Server.
When using these capabilities, users don't need to make any HTTP request data to
communicate with peer's Web server, all users have to do is give some AT commands like
"AT+HTTPCOPEN", "AT+HTTPCCLOSE" and so on.
And there are two modes to connect to any Web Server. One is the normal HTTP Client function
and the other is the secure HTTP Client function as named HTTPS Client.
WizFi210 supports both of options with the same command but the difference is whether a
corresponding option flag is set or not and in order to use HTTPS Client, users should do
something like registering Certificate, in advance.
8.1.1.

Communicating with Web Server using normal HTTP

Now, we explain how to communicate with a normal Web Server, www.wiznet.co.kr, with a
simple example.
Getting HTML Data
In order to connect to a HTTP server and get some HTML Data, users have to do as follow.
① Do some configuration you need using "AT+HTTPCONF" command.
(WIZnet Co., Ltd.)
WizFi210
Programmers' Guide
8-57

Advertisement

Table of Contents
loading

Table of Contents