14 http post (polling mode), Ac75 at command set – Siemens AC75 User Manual

Page 306

Advertising
background image

AC75 AT Command Set

10.14 Examples of how to Configure and Use Internet Service Profiles

s

AC75_ATC_V01.002

Page 306 of 569

10/30/06

Confidential / Released

10.14.14

HTTP POST (Polling Mode)

^SISR: 1, 578

Command response indicates that 578 bytes are

available for reading.

Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from 10.10.0.132 (unknown [10.10.0.132])
by testdomain.com (Postfix) with SMTP id 379321D004
for <[email protected]>; Tue, 20 Dec 2005 08:00:07 +0100 (CET)
To: [email protected]
Cc:
From: [email protected]
Subject: TestMail
Message-Id: <[email protected] >
Date: Tue, 20 Dec 2005 08:00:07 +0100 (CET)
X-UIDL: &lL"!(Z6"!^cl!!1+%"!
Status: RO

Hallo Tom!Bye Bye Tom!

.

Dot indicates end of mail according to RFC 2821.

OK

at^sisr=1,1000

Try to read 1000 bytes once again.

^SISR: 1,-2

No more data available to read, i.e. the service has

finished.

OK

at^sisi=1

Check the connection state of service profile 1.

^SISI: 1,6,578,0,0,0

Thecommand response indicates that the POP3 ser-

vice is in state "6" (Down) and that 578 bytes have

been retrieved.

OK

at^sise=1

Check error status of service profile 1.

^SISE: 1,0

The command response confirms that no error

occurred.

OK

at^sisc=1

Close the service.

OK

at^siss=1,srvType,"Http"

Select service type HTTP.

OK

at^siss=1,conId,1

Select connection profile 1.

OK

at^siss=1,hcMethod,1

Select "Post" method.

OK

at^siss=1,address,"http://192.168.1.3/datafiles/dummy/dummy.txt"

OK

at^siss=1,hcContLen,180

Try to upload 180 bytes.

OK

at^siso=1

Open the service.

OK

at^sisw=1,100

Send the first 100 bytes.

^SISW: 1, 100, 0

OK

at^sisw=1,100

Try to send again 100 bytes.

^SISW: 1, 80, 0

80 bytes are sent.

OK

at^sisw=1,40

Try to write data once again.

Advertising