Rainbow Electronics GM862-QUAD-PY User Manual
Page 37
Easy GPRS User Guide
80000ST10028 Rev. 4 - 16/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 37 of 63
For all the socket settings the following AT command will be used:
AT#SCFG=1,1,300,90,600,50
OK
Next step is activation of the GPRS context:
AT#SGACT=1,1,“EASY GPRS“,“EASY GPRS“
#SGACT: 193.199.234.255
OK
This command replies with the IP address assigned by the network.
Now we can proceed with contacting the server with AT command for socket dial:
AT#SD=1,0,80,”www.telit.com”,0,0
When we receive the CONNECT indication, then we are exchanging data with the HTTP server
program on the remote host machine.
Now following the HTTP protocol we ask for the homepage by sending the following lines on the serial
line:
GET / HTTP/1.1
Host: www.telit.com
Connection: keep-alive
TIP: Remember that the strings, which are sent to the HTTP server, have to be ended by line
feed character. To see the issued commands enable the local echo.
As a response to our query the HTTP server will reply with the HTML code of the homepage and
some debugging responses that we will see directly on the serial line:
HTTP/1.1 200 OK
Date: Thu, 06 2003 10:21:58 GMT
Server: Apache/1.3.27 (Unix)
Last-Modified: Thu, 06 2003 10:21:58 GMT
Content-Type: text/html
Connection: close
… here is all the HTML code of the page..
OK
AT#SH=1
OK