Hello all, I am trying to post a a SL document to the PPG, but keep getting the following error from Kannel;
<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd"><pap><badmessage-response code="2000" desc="Not understood due to malformed syntax" bad-message-fragment="application/x-www-form-urlencoded"></badmessage-response></pap> I am using CURL from within PHP5. This is my code; $ch = curl_init('http://localhost:8888/wappush'); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); // perform post $resultat = curl_exec($ch); curl_close ($ch); I guess CURL adds the "application/x-www-form-urlencoded" part, why does not Kannel accept it? Cheers, Arne -- -------------------------------- Arne K. Haaje | www.drlinux.no Bregneveien 9 | www.drx.no 1825 Tomter | M: 92 88 44 66 --------------------------------
