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"
TE: trailers
User-Agent: RPT-HTTPClient/0.3-3
X-MMSC-Billingdata: news;0.5

Content-Type: application/xml

<?xml version="1.0"?>
<push-message push-id="MMSCAPI--305941948">
<address address-value="09229220534"/>

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

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


Any Help is appreciated..thanks!