...

View Full Version : Content-Transfer-Encoding: base64 (Huh?)



rfresh
10-17-2009, 09:56 PM
I'm writing a PHP script that accepts an MMS text message from stdin and processes it. The incoming text is shown below. This has a simple text response but I cannot see it. I think it is encoded but I don't know how to un-encode it. Can anyone help please?

Thanks


From 5625551212@mms.att.net Sat Oct 17 15:47:22 2009
Received: from atlmtaow03.cingularme.com ([66.102.165.8])
by host.whmvps.com with esmtp (Exim 4.69)
(envelope-from )
id 1MzGBO-0001te-Kw
for pager@pager.com; Sat, 17 Oct 2009 15:47:22 -0500
X-Mms-MMS-Version: 18
Date: Sat, 17 Oct 2009 15:58:45 -0500
X-Nokia-Ag-Internal: ; smiltype=false; internaldate=1255813125574
Content-Type: multipart/mixed; boundary="----=_Part_10976836_3030570.1255813125580"
Received: from schagw02 ([209.183.32.189]) by atlmtaow03.cingularme.com (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id for ; Sat, 17 Oct 2009 16:47:16 -0400
X-Mms-Transaction-ID: 1255812429-5
From:
To: pager@pager.com
Mime-Version: 1.0
Message-ID:
X-Mms-Message-Type: 0
Subject: Multimedia message
X-Nokia-Ag-Version: 2.0

------=_Part_10976836_3030570.1255813125580
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

Ck1tcyBpUGhvbmU=
------=_Part_10976836_3030570.1255813125580--

barkermn01
10-17-2009, 11:18 PM
I'm writing a PHP script that accepts an MMS text message from stdin and processes it. The incoming text is shown below. This has a simple text response but I cannot see it. I think it is encoded but I don't know how to un-encode it. Can anyone help please?

Thanks


From 5625551212@mms.att.net Sat Oct 17 15:47:22 2009
Received: from atlmtaow03.cingularme.com ([66.102.165.8])
by host.whmvps.com with esmtp (Exim 4.69)
(envelope-from )
id 1MzGBO-0001te-Kw
for pager@pager.com; Sat, 17 Oct 2009 15:47:22 -0500
X-Mms-MMS-Version: 18
Date: Sat, 17 Oct 2009 15:58:45 -0500
X-Nokia-Ag-Internal: ; smiltype=false; internaldate=1255813125574
Content-Type: multipart/mixed; boundary="----=_Part_10976836_3030570.1255813125580"
Received: from schagw02 ([209.183.32.189]) by atlmtaow03.cingularme.com (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id for ; Sat, 17 Oct 2009 16:47:16 -0400
X-Mms-Transaction-ID: 1255812429-5
From:
To: pager@pager.com
Mime-Version: 1.0
Message-ID:
X-Mms-Message-Type: 0
Subject: Multimedia message
X-Nokia-Ag-Version: 2.0

------=_Part_10976836_3030570.1255813125580
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

Ck1tcyBpUGhvbmU=
------=_Part_10976836_3030570.1255813125580--

Check this out
http://uk2.php.net/manual/en/function.base64-decode.php

base64 is an encoding format that can be decoded

E..G
base64_decode('Ck1tcyBpUGhvbmU=');



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum