22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

+CHTTPACT: D<strong>AT</strong>A, <br />

…<br />

+CHTTPACT: D<strong>AT</strong>A, <br />

…<br />

…<br />

+CHTTPACT: <br />

ERROR<br />

Defined values<br />

<br />

The HTTP server domain name or IP address.<br />

<br />

The HTTP server port.<br />

<br />

The length of HTTP data in the packet.<br />

<br />

The error code of HTTP operation.<br />

Examples<br />

<strong>AT</strong>+CHTTPACT=”www.mywebsite.com”,80<br />

+CHTTPACT: REQUEST<br />

GET http://www.mywebsite.com/index.html HTTP/1.1<br />

Host: www.mywebsite.com<br />

User-Agent: MY WEB AGENT<br />

Content-Length: 0<br />

<br />

OK<br />

+CHTTPACT: D<strong>AT</strong>A, 249<br />

HTTP/1.1 200 OK<br />

Content-Type: text/html<br />

Content-Language: zh-CN<br />

Content-Length: 57<br />

Date: Tue, 31 Mar 2009 01:56:05 GMT<br />

Connection: Close<br />

Proxy-Connection: Close<br />

<br />

test<br />

<br />

Test body<br />

<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 440<br />

5/15/2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!