It should be 100% binary. You need to encode the URL.
On Sat, 26 Feb 2005, Linkas wrote:
In the the contrib/web/sendsms.php I have Service Indication (WAPPUSHSI) working fine, but not the WAPPUSHSL.
I've tried to modify a couple of "strange things" I saw, and here is the "job":
My UDH is: %06%05%04%0B%84%23%F0 (same ad Wap Push SI)
While the text message is: $fields['text'] .= "%01"; # Transaction ID $fields['text'] .= "%06"; # PDU Type (push) $fields['text'] .= "%04"; # Headers Length $fields['text'] .= "%03"; # Length of content type // The next line looks strange - in the contrib was different $fields['text'] .= "%B0"; # Content-Type: application/vnd.wap.slc // End of strange line
$fields['text'] .= "%81"; # Charset $fields['text'] .= "%EA"; # UTF-8
$fields['text'] .= "%02"; # Version number (wbxml_version) $fields['text'] .= "%06"; # WBXML Public Identifier (sL_public_id) // THIS line is strange too - why SIbxml and not SLbxml ? $fields['text'] .= "%6A"; # charset= (sibxml->charset) // END of strange line $fields['text'] .= "%00"; # String table length
// The 'real' content I need to send where $URL is my wap page $fields['text'] .= "%85"; # <sl> $fields['text'] .= "%06"; # action="signal-high" // Quite strange the URL is not 'urlencoded' but on the SI works ok like that $fields['text'] .= "%08" . "%03" . $URL . "%00"; $fields['text'] .= "%01"; # </si>
The resulting HTTP GET is:
udh=%06%05%04%0B%84%23%F0 text=%01%06%04%03%B0%81%EA%02%06%6A%00%85%06%08%03http://www.info-me.it/wap/index.wml%00%01
Can anyone help?
Thanks Julien
--------------------------------------------------------------------------- Peter Beckman Internet Guy [EMAIL PROTECTED] http://www.purplecow.com/ ---------------------------------------------------------------------------
