Hi,
This post is related to Magnus Adlers's.
I'd greatly appreciate if someone could post an example of a simple but
complete WAP Push request (with http headers and all) that wapbox
accepts. There are examples in the docs, but they only show the pap
xml, not the complete http request.
I've tried about 20 variants of the following HTTP message, adding a new
line here or there, removing headers, etc, based on various
specifications and examples that I've found. Each time I get a slightly
different error message. Here is the version that seems to get me
furthest:
=====================================
POST /wappush HTTP/1.1
host: www.kniberg.com:13003
Content-Type: multipart/related; boundary=EndOfOneEntity;
type="application/xml"
Content-Length: 372
--EndOfOneEntity
Content-Type: "application/xml"
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap>
<push-message push-id="[EMAIL PROTECTED]">
<address
address-value="WAPPUSH=+358408676001/[EMAIL PROTECTED]">
</address>
</push-message>
</pap>
--EndOfOneEntity
=====================================
In response to this the wap box says:
2003-07-08 19:35:01 [11] DEBUG: HTTP: Creating HTTPClient for
`192.168.0.16'.
2003-07-08 19:35:01 [14] INFO: PPG: Accept request </wappush> from
<192.168.0.16>
2003-07-08 19:35:01 [14] WARNING: erroneous control entity
2003-07-08 19:35:01 [14] DEBUG: PPG: send_bad_message_response: telling
pi
2003-07-08 19:35:01 [14] DEBUG: HTTP: Resetting HTTPClient for
`192.168.0.16'.
2003-07-08 19:35:01 [14] WARNING: PPG: unable to parse mime content, the
request unacceptable
I'm running Kannel 1.3.1 on Redhat (7.3 I think).
Cheers,
/Henrik