Hi there! I'm developing a system which connects to MMS Server, pass an image or truetone. I can do this via HTTPWebRequest, then pass a stream. My problem is, I don't know how to write to the stream of the request and how will i test if it worked or not. The following should be the format of the stream i will pass...

POST /vas HTTP/1.1
Authorization: Basic NjM5MjIyMDEwMDAxOkpMYXBpcmEwOQ==
Connection: Close, TE
Content-Length: 23938
Content-Type: multipart/related; boundary=pap-border; type="application/xml"
Host: 202.138.159.67
TE: trailers
User-Agent: RPT-HTTPClient/0.3-3
X-MMSC-Billingdata: news;0.5

--pap-border
Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd">
<pap>
<push-message push-id="MMSCAPI--305941948">
<address address-value="09229220534"/>
</push-message>
</pap>

--pap-border
Message-ID: <2775035.1066858934449.JavaMail.root@wireless>
From: 639222010001/TYPE=PLMN
To: Undisclosed-recipients
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_16_4667711.1066858934447"
X-Mms-Message-Type: m-send-req
X-Mms-transaction-ID: MMSCAPI--305941948
X-Mms-MMS-Version: 1.0
X-Mms-Delivery-Report: yes

------=_Part_16_4667711.1066858934447
Content-Type: application/octet-stream; name=buffalosoldier
content-transfer-encoding: binary
Content-Disposition: attachment; filename=buffalosoldier

#!AMR-WB
$

Any Help is appreciated..thanks!