SlideShare a Scribd company logo
HTTP Interface Specification
Version 1.0
This document is intended for application developers with knowledge about the HTTP protocol.
Document history
Version Description
1.0 First release
2.0 New Movitext Look and Feel
1. Introduction
Movitext Messaging Platform (MMP) enables users to send message to and receive
messages from mobile devices.
Outbound (mobile terminated) messages are sent from a Customer Application (Client) to
MP using Hypertext Transfer protocol (HTTP).
Inbound (mobile originated) messages are sent from MMP to Customer Server (Server)
using HTTP.
Each message consists of a number of parameters sent as form parameters using HTTP
POST or HTTP GET operations. POST is the recommended method since GET operations
can be limited in size and may be truncated by browsers or intermediate proxies.
MMP supports HTTP 1.0 and HTTP 1.1 with persistent connections.
1.1. URL encoding
All requests must be properly “URL encoded” as per RFC 1738. Since URLs can only
include a limited set of characters (“A-Z”, “a-z”, “0-9”, “$-_.+!*'(),") all other characters
needs to be properly escaped. There are utility classes that help the developer with this in
most languages including Java, Perl, PHP and .NET.
Please note that source and destination addresses should never include a leading “+”
character and also that a “+” in a URL is actually an “escaped” SPACE.
1.2. Addresses
Source and destination addresses (senders and recipients) are usually numeric
international GSM numbers starting with country code, without leading zeros or plus
signs. It is also possible to use alphanumeric source addresses which can be a maximum
of 11 characters in the GSM network. Only use characters A-Z, a-z, 0-9 and space for best
result.
1.3. Delivery reports (DLRs)
When a message is sent to MMP it is not known whether it can be delivered or not.
However, it is possible to request a delivery report (using the parameter DLR=1) which will
be submitted from MMP to Server when the final status for the message has been
reached. A DLR is structured as any other message but has a special message type set, it
will also contain a reference to the id of the original message.
2. Client to Movitext Messaging Platform (sending)
This section describes how to send requests from the Client Application (Client) to the
Movitext Messaging Platform (MMP) and the possible responses to such requests.
The Client issues a HTTP GET or POST request to the MMP using a specific URL. The MMP
issues back a response which completes the transaction. Please note that the MMP
response can either be an HTTP error code or a HTTP OK (200) in which case the returned
response body will contain further information.
The Client supplies a number of parameters to the MMP.
2.1. Submit message
2.1.1. Request parameters
Parameters are found in section 4, “Parameter reference”.
2.1.2. Example sending text message
Username: user1
Password: secret
Destination address: +46-70-123456
Message: ”Hello world”
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&MESSAGE=Hello+world
2.1.3. Example sending binary message
Username: user1
Password: secret
Destination address: +46-70-123456
Message: 0x41 0x42 0x43 0x4a
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&CHARCODE=2&MESSAGE=4142434A
2.1.4. Example sending binary message with UDH
Username: user1
Password: secret
Destination address: +46-70-123456
UDH: 0x06 0x05 0x04 0x0b 0x84 0x23 0xf0 (WAP push)
Message: 0x41 0x42 0x43 0x4a (not a valid message only to illustrate example)
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&CHARCODE=2&UDHI=1&MESSAGE=0605040B8423F04142
434A
2.2. Responses
Responses from the Mobile SV Platform are HTTP responses which contain a status code
which is either 200 (OK) or an error code. If HTTP status is OK then the response body
includes further status information for the operation.
Response body include two or, optionally, three lines:
1. Contains the assigned message id, a numeric value, or -1 if the request failed.
2. Contains the status code, 0 for success or otherwise a numeric value other than 0
indicating what error occurred. Error codes: 1 – Unkown error, 2 – Syntax error,
mandatory parameter missing, 10 – Access denied, 11 – Invalid message, 16 – No
message credits left
3. If present, contains a text describing the error that occurred.
2.2.1. Example: Response indicating success
124365
0
OK
2.2.2. Example: Response indicating failure
-1
2
Recipient (DESTADDR) is missing
3. Movitext Messaging Platform to Client (receiving)
This section describes requests that are sent from the Movitext Messaging Platform
(MMP) to the Customer Server and how the Server should respond. Such requests are sent
when incoming (Mobile-Originated) messages are received and forwarded to the
customer. Same type of requests are used for Delivery Reports (DLRs).
MMP issues a HTTP POST request to the Server using a specific URL. The Server must
respond with a HTTP OK (200), body should be empty and will be ignored.
MMP will supply a number of parameters. Parameters are found in section 4, “Parameter
reference”.
Typical parameters for request containing message: ID, SOURCEADDR,
SOURCEADDRTON, SOURCEADDRNPI, DESTADDR, MESSAGE, VP
Typical parameters for request containing DLR: ID, DLRID, SOURCEADDR, DESTADDR,
STATUS, MSGTYPE, MESSAGE, VP
4. Parameter reference
Below the most common request parameters are listed. Other additional parameters may
be present in requests. The rightmost column describes whether parameter is used for
sending or receiving messages/DLRs.
Parameter Description Mandatory - M
Optional - O
Send - S
Receive - R
USERNAME Username for MMP account M S
PASSWORD Password for MMP account M S
ID Message id M R
ORIGID Original message id
Only used for SAT when a reply
to a previously sent message is
received
M (SAT replies) R
DESTADDR Destination address (recipient)
MSISDN should be on
international format starting with
country code. Example:
4670123456
M S,R
SOURCEADDR Source address (sender)
Alphanumeric senders can be a
maximum of 11 characters
according to GSM spec only
A-Z, a-z, 0-9 and space should be
used
O S,R
SOURCEADDRTON Type of Number (TON) for source
address
Values:
0 Unknown
1 International (default)
5 Alphanumeric
O S,R
SOURCEADDRNPI Numbering Plan Indicator (NPI)
for source address
Should not be set when sending
messages where it will default to
1.
O S,R
DESTADDRTON Type of Number (TON) for
destination address
Should not be set when sending
O S,R
messages where it will default to
1 (international number).
DESTADDRNPI Numbering Plan Indicator (NPI)
for destination address
Should not be set when sending
messages where it will default to
1.
O S,R
CHARCODE Message encoding
Values:
0 (GSM text, default
also used for ISO-8859-15
when conversion enabled for
account)
2 (Binary, 8-bit)
4 (UCS2, Unicode 16-bit)
O S,R
MESSAGE Message data
Format depends on message
type. For GSM text messages
data is URL encoded. For binary
or UCS2 messages data must be
hex encoded.
M (messages)
O (DLRs)
S,R
MSGTYPE Message type
1 Normal
5 DLR
M (DLRs only) R
DLR Request DLR
Set to “1” to request that a
delivery report (DLR) be sent back
O S
DLRID Original message id for DLRs
When a DLR is received this
parameter will contain the id of
the original message it refers to
M (DLRs only) R
STATUS Status
Indicates status of message
1 – Delivered
2 – In process
3 – Failed
4 – Deleted
5 – Expired
6 – Rejected
7 – Canceled
8 – Queued
9 – Orphaned
M (DLRs only) R
10 – Relayed
11 – Unknown
KEYWORD First word in message O R
VP Validity Period
Indicates how long (in seconds) a
message will be stored for
delivery before it will be expired
O S,R
UDHI User Data Header (UDH)
Indicator
When set to non-zero value,
specifies that UDH is present in
the message body.
O S
SOURCEPORT Source port
Numeric value, 0 – 65535
This information will be added to
UDH.
O S
DESTPORT Destination port
Numeric value, 0 – 65535
This information will be added to
UDH.
O S
CONCATSMSREF For concatenated messages
Specifies a numeric reference
number, 0 – 255
Not needed to send long
messages.
O S,R
CONCATSMSSEQ For concatenated messages
Specifies sequence number for
this message part
Not needed to send long
messages.
O S,R
CONCATSMSMAX For concatenated messages
Specifies total number of parts
for this message
Not needed to send long
messages.
O S,R

More Related Content

PPT
Tlcm513 ipv6
 
DOC
ISM29jun06.doc
DOC
sarasism2006.doc
PDF
Fpga implemented multichannel hdlc transceiver
DOCX
Understanding TCP and HTTP
PDF
Unit 4 tansport layer in the internat
PPT
Web services and mobile architecture
Tlcm513 ipv6
 
ISM29jun06.doc
sarasism2006.doc
Fpga implemented multichannel hdlc transceiver
Understanding TCP and HTTP
Unit 4 tansport layer in the internat
Web services and mobile architecture

What's hot (7)

PDF
Solution against BGP vulnerabilities
PDF
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
PPS
SOA web services concepts
PDF
Computer Communication Networks- Introduction to Transport layer
PDF
AODV Improvement by Modification at Source Node and Securing It from Black Ho...
PPTX
Application layer
PDF
Ijctt v7 p111
Solution against BGP vulnerabilities
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
SOA web services concepts
Computer Communication Networks- Introduction to Transport layer
AODV Improvement by Modification at Source Node and Securing It from Black Ho...
Application layer
Ijctt v7 p111
Ad

Similar to Movitext http interface specification (20)

PDF
Whatsapp Business API Solution
PDF
MUTHOFUN BULK SMS API Documentation
PDF
STUN protocol
PPTX
PPTX
email forensics email forensics email forensics.pptx
PPT
Distributedapplications
PPT
Dictributed application by Waqas
PDF
DIAMETER_EFORT_ENG.pdf
PPS
Mobile Messaging - Part 5 - Mms Arch And Transactions
PPTX
HTTP/2 - Differences and Performance Improvements with HTTP
PPT
10 Slides to SMS
PPT
10 Slides to SMS
PDF
허준환 One m2m-protocol binding
PPT
Web services for developer
PDF
10 slides sms
PPTX
Sql server lesson11
PDF
T3UC_PresentationT3UC2012_Rajesh
PPTX
SOAP WEB TECHNOLOGIES
PPTX
CN Unit-5.pptx dns jdlj;lvk;ckx; gfvfdcffdf
Whatsapp Business API Solution
MUTHOFUN BULK SMS API Documentation
STUN protocol
email forensics email forensics email forensics.pptx
Distributedapplications
Dictributed application by Waqas
DIAMETER_EFORT_ENG.pdf
Mobile Messaging - Part 5 - Mms Arch And Transactions
HTTP/2 - Differences and Performance Improvements with HTTP
10 Slides to SMS
10 Slides to SMS
허준환 One m2m-protocol binding
Web services for developer
10 slides sms
Sql server lesson11
T3UC_PresentationT3UC2012_Rajesh
SOAP WEB TECHNOLOGIES
CN Unit-5.pptx dns jdlj;lvk;ckx; gfvfdcffdf
Ad

More from Movitext (6)

PDF
Movitext web2 sms
PDF
Universidades
PDF
Remesas
PDF
Política
PDF
Datos del sms
PDF
Campaña efectiva
Movitext web2 sms
Universidades
Remesas
Política
Datos del sms
Campaña efectiva

Recently uploaded (20)

PDF
annual-report-2024-2025 original latest.
PPTX
Introduction to Knowledge Engineering Part 1
PDF
Foundation of Data Science unit number two notes
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
Supervised vs unsupervised machine learning algorithms
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
1_Introduction to advance data techniques.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPT
Reliability_Chapter_ presentation 1221.5784
annual-report-2024-2025 original latest.
Introduction to Knowledge Engineering Part 1
Foundation of Data Science unit number two notes
Introduction-to-Cloud-ComputingFinal.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Fluorescence-microscope_Botany_detailed content
Supervised vs unsupervised machine learning algorithms
Miokarditis (Inflamasi pada Otot Jantung)
climate analysis of Dhaka ,Banglades.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
1_Introduction to advance data techniques.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
STUDY DESIGN details- Lt Col Maksud (21).pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Reliability_Chapter_ presentation 1221.5784

Movitext http interface specification

  • 1. HTTP Interface Specification Version 1.0 This document is intended for application developers with knowledge about the HTTP protocol.
  • 2. Document history Version Description 1.0 First release 2.0 New Movitext Look and Feel
  • 3. 1. Introduction Movitext Messaging Platform (MMP) enables users to send message to and receive messages from mobile devices. Outbound (mobile terminated) messages are sent from a Customer Application (Client) to MP using Hypertext Transfer protocol (HTTP). Inbound (mobile originated) messages are sent from MMP to Customer Server (Server) using HTTP. Each message consists of a number of parameters sent as form parameters using HTTP POST or HTTP GET operations. POST is the recommended method since GET operations can be limited in size and may be truncated by browsers or intermediate proxies. MMP supports HTTP 1.0 and HTTP 1.1 with persistent connections. 1.1. URL encoding All requests must be properly “URL encoded” as per RFC 1738. Since URLs can only include a limited set of characters (“A-Z”, “a-z”, “0-9”, “$-_.+!*'(),") all other characters needs to be properly escaped. There are utility classes that help the developer with this in most languages including Java, Perl, PHP and .NET. Please note that source and destination addresses should never include a leading “+” character and also that a “+” in a URL is actually an “escaped” SPACE. 1.2. Addresses Source and destination addresses (senders and recipients) are usually numeric international GSM numbers starting with country code, without leading zeros or plus signs. It is also possible to use alphanumeric source addresses which can be a maximum of 11 characters in the GSM network. Only use characters A-Z, a-z, 0-9 and space for best result. 1.3. Delivery reports (DLRs) When a message is sent to MMP it is not known whether it can be delivered or not. However, it is possible to request a delivery report (using the parameter DLR=1) which will be submitted from MMP to Server when the final status for the message has been reached. A DLR is structured as any other message but has a special message type set, it will also contain a reference to the id of the original message.
  • 4. 2. Client to Movitext Messaging Platform (sending) This section describes how to send requests from the Client Application (Client) to the Movitext Messaging Platform (MMP) and the possible responses to such requests. The Client issues a HTTP GET or POST request to the MMP using a specific URL. The MMP issues back a response which completes the transaction. Please note that the MMP response can either be an HTTP error code or a HTTP OK (200) in which case the returned response body will contain further information. The Client supplies a number of parameters to the MMP. 2.1. Submit message 2.1.1. Request parameters Parameters are found in section 4, “Parameter reference”. 2.1.2. Example sending text message Username: user1 Password: secret Destination address: +46-70-123456 Message: ”Hello world” http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&MESSAGE=Hello+world 2.1.3. Example sending binary message Username: user1 Password: secret Destination address: +46-70-123456 Message: 0x41 0x42 0x43 0x4a http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&CHARCODE=2&MESSAGE=4142434A 2.1.4. Example sending binary message with UDH Username: user1 Password: secret Destination address: +46-70-123456 UDH: 0x06 0x05 0x04 0x0b 0x84 0x23 0xf0 (WAP push) Message: 0x41 0x42 0x43 0x4a (not a valid message only to illustrate example) http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&CHARCODE=2&UDHI=1&MESSAGE=0605040B8423F04142 434A
  • 5. 2.2. Responses Responses from the Mobile SV Platform are HTTP responses which contain a status code which is either 200 (OK) or an error code. If HTTP status is OK then the response body includes further status information for the operation. Response body include two or, optionally, three lines: 1. Contains the assigned message id, a numeric value, or -1 if the request failed. 2. Contains the status code, 0 for success or otherwise a numeric value other than 0 indicating what error occurred. Error codes: 1 – Unkown error, 2 – Syntax error, mandatory parameter missing, 10 – Access denied, 11 – Invalid message, 16 – No message credits left 3. If present, contains a text describing the error that occurred. 2.2.1. Example: Response indicating success 124365 0 OK 2.2.2. Example: Response indicating failure -1 2 Recipient (DESTADDR) is missing 3. Movitext Messaging Platform to Client (receiving) This section describes requests that are sent from the Movitext Messaging Platform (MMP) to the Customer Server and how the Server should respond. Such requests are sent when incoming (Mobile-Originated) messages are received and forwarded to the customer. Same type of requests are used for Delivery Reports (DLRs). MMP issues a HTTP POST request to the Server using a specific URL. The Server must respond with a HTTP OK (200), body should be empty and will be ignored. MMP will supply a number of parameters. Parameters are found in section 4, “Parameter reference”. Typical parameters for request containing message: ID, SOURCEADDR, SOURCEADDRTON, SOURCEADDRNPI, DESTADDR, MESSAGE, VP Typical parameters for request containing DLR: ID, DLRID, SOURCEADDR, DESTADDR, STATUS, MSGTYPE, MESSAGE, VP
  • 6. 4. Parameter reference Below the most common request parameters are listed. Other additional parameters may be present in requests. The rightmost column describes whether parameter is used for sending or receiving messages/DLRs. Parameter Description Mandatory - M Optional - O Send - S Receive - R USERNAME Username for MMP account M S PASSWORD Password for MMP account M S ID Message id M R ORIGID Original message id Only used for SAT when a reply to a previously sent message is received M (SAT replies) R DESTADDR Destination address (recipient) MSISDN should be on international format starting with country code. Example: 4670123456 M S,R SOURCEADDR Source address (sender) Alphanumeric senders can be a maximum of 11 characters according to GSM spec only A-Z, a-z, 0-9 and space should be used O S,R SOURCEADDRTON Type of Number (TON) for source address Values: 0 Unknown 1 International (default) 5 Alphanumeric O S,R SOURCEADDRNPI Numbering Plan Indicator (NPI) for source address Should not be set when sending messages where it will default to 1. O S,R DESTADDRTON Type of Number (TON) for destination address Should not be set when sending O S,R
  • 7. messages where it will default to 1 (international number). DESTADDRNPI Numbering Plan Indicator (NPI) for destination address Should not be set when sending messages where it will default to 1. O S,R CHARCODE Message encoding Values: 0 (GSM text, default also used for ISO-8859-15 when conversion enabled for account) 2 (Binary, 8-bit) 4 (UCS2, Unicode 16-bit) O S,R MESSAGE Message data Format depends on message type. For GSM text messages data is URL encoded. For binary or UCS2 messages data must be hex encoded. M (messages) O (DLRs) S,R MSGTYPE Message type 1 Normal 5 DLR M (DLRs only) R DLR Request DLR Set to “1” to request that a delivery report (DLR) be sent back O S DLRID Original message id for DLRs When a DLR is received this parameter will contain the id of the original message it refers to M (DLRs only) R STATUS Status Indicates status of message 1 – Delivered 2 – In process 3 – Failed 4 – Deleted 5 – Expired 6 – Rejected 7 – Canceled 8 – Queued 9 – Orphaned M (DLRs only) R
  • 8. 10 – Relayed 11 – Unknown KEYWORD First word in message O R VP Validity Period Indicates how long (in seconds) a message will be stored for delivery before it will be expired O S,R UDHI User Data Header (UDH) Indicator When set to non-zero value, specifies that UDH is present in the message body. O S SOURCEPORT Source port Numeric value, 0 – 65535 This information will be added to UDH. O S DESTPORT Destination port Numeric value, 0 – 65535 This information will be added to UDH. O S CONCATSMSREF For concatenated messages Specifies a numeric reference number, 0 – 255 Not needed to send long messages. O S,R CONCATSMSSEQ For concatenated messages Specifies sequence number for this message part Not needed to send long messages. O S,R CONCATSMSMAX For concatenated messages Specifies total number of parts for this message Not needed to send long messages. O S,R