S
Simon Callan
I'm trying to implement a WAP Push Protocol Gateway, using Push Access
Protocol over HTTP, and I'm having problems.
Ignoring all the buzzwords, my CGI program receives a post something
like:
POST /cgi-bin/wap_push.cgi HTTP/1.1
Host: www.wireless-network.com
Date: Sun, 16 May 1999 18:13:23 GMT
Content-Type: multipart/related; boundary=asdf; type="application/xml"
Content-Length: 353
--asdf
Content-Type: application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAD 2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd"
[<?wap-pap-ver supported-version="2.0,1.*"?>]>
<pap>
...control...
</pdp>
--asdf
...content entity ..
--asdf--
The first problem ism how do I extract the multipart/related data? The
CGI modules do not appear to handle this sort of stuff, and despitre
searching www.perl.com and CPAN, I cannot see any obvious modules that
do what I want.
I think that XML::Simple will be suitable for the simple XML i expect,
but if anyone has any better suggestions, I would be more than happy
to receive them.
Thanks,
Simon Callan
Protocol over HTTP, and I'm having problems.
Ignoring all the buzzwords, my CGI program receives a post something
like:
POST /cgi-bin/wap_push.cgi HTTP/1.1
Host: www.wireless-network.com
Date: Sun, 16 May 1999 18:13:23 GMT
Content-Type: multipart/related; boundary=asdf; type="application/xml"
Content-Length: 353
--asdf
Content-Type: application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAD 2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd"
[<?wap-pap-ver supported-version="2.0,1.*"?>]>
<pap>
...control...
</pdp>
--asdf
...content entity ..
--asdf--
The first problem ism how do I extract the multipart/related data? The
CGI modules do not appear to handle this sort of stuff, and despitre
searching www.perl.com and CPAN, I cannot see any obvious modules that
do what I want.
I think that XML::Simple will be suitable for the simple XML i expect,
but if anyone has any better suggestions, I would be more than happy
to receive them.
Thanks,
Simon Callan