Parse message received using Form Post

Help with the Esendex API

Parse message received using Form Post

Postby dmitry_oz » Thu Jul 08, 2010 2:20 am

I use form post to retrieve messages.
All good, execpt for a few things:
1) Receivedat comes in the following format 2010-07-07+16%3a35%3a52Z
looks like space caracter replaced with + , semi-column replaced with %sa and what is the "Z" at the end?
2) CR replaced with +%0a

Is there a document or help file which lists all those transformations? I need to develop some algorithm to parse incoming messages.

N.B. There's a sample message:
ID=88b5d081-197b-4dde-8663-67060db9bf2d&Originator=61410124983&Recipient=61416905078&Body=Emp+code%0aJob+%0aAct%0aCom%0aStart%0aFinish&ReceivedAt=2010-07-07+16%3a32%3a28Z&Type=Text&IndexID=33756023
dmitry_oz
 
Posts: 1
Joined: Thu Jul 08, 2010 2:12 am

Re: Parse message received using Form Post

Postby Andrew » Mon Jul 12, 2010 10:59 am

Dmitry,

This website explains URL Encoding: http://www.permadi.com/tutorial/urlEncoding/. What programming language are you using? Most provide methods to decode them, such as:

.net: NetSystem.Web.HttpUtility.UrlDecode(string)
PHP: urldecode(string)


The Z on the end of the time implies UTC.
Andrew
 
Posts: 2
Joined: Fri Mar 05, 2010 10:19 pm


Return to API



cron
© Esendex Ltd 2010
Company Registration Number: 04217280