HTTP承载方式示范 - 王茜翻译
Demo of HTTP Load Mode
下面以Deliver操作为例说明HTTP承载方式的用法。
Following is an illustration of Deliver operation to describe the usage
of the HTTP load mode.
SMG向SP发送Deliver命令时,采用如下格式(假设SP提供的处理Deliver命令的URL为http://www.spserver.com/sp.cgi,该短消息是从节点号为205502的SMSC上接收下来的,接收时间为3月27日12时50分25秒,这是这一秒内收到的第327条短消息,短消息是由号码为8613001125453的手机发送的,SP的接入号码为168,且短消息的内容为ABCD
1234,返回短消息内容为EFGH 5678):
When SMG sends a Deliver command to SP, the following format is applied
(assuming the URL provided by SP to process the Deliver command is http://www.spserver.com/sp.cgi,
the short message has been received from the SMSC with the node number
205502 at 12h:50m:25s on 27th March; and the message, being the 327th
message received in the second, was sent by a handset with the number
8613001125453; the access number of SP is 168, the content of the message
is ABCD 1234, and the content of the returned message is EFGH 5678):
POST /sp.cgi HTTP/1.0
Host: www.spserver.com
Authorization: Basic <Base64 串>
Content-Length: <Content-Length>
<CommandId>=<4>
<SequenceNumber>=<205502327125025327>
<UserNumber>=<8613001125453>
<SPNumber>=<168>
<MessageContent>=<ABCD 1234>
SP收到请求后,返回应答表示SP成功接收该命令,同时返回MT信息
After SP receives the request, it returns a response indicating that SP
has received the command successfully. At the same time a MT message is
returned too.
HTTP/1.0 200 OK
Date: Tue, 13 Mar 2001 02:45:12 GMT
Server: Apache/1.3.12 (Unix)
Content-Type: text/html
<CommandId>=<80000004>
<SequenceNumber>=<205502327125025327>
<UserNumber>=<8613001125453>
<SPNumber>=<168>
<MessageContent>=< EFGH 5678>Connection: close
<Result>=<0>
|