Thank you Christian. I got it!
>...why don't you just pass the original String to Send?(in the variant).
Yes, I did think about it and that's the first way I tried but it
didn't work; I might do something wrong. And the doc for (nsIVarient *
body) states like this:
Arguments:
body: Either an instance of nsIDOMDocument, nsIInputStream or a
string (nsISupportsString in the native calling case). This is used to
populate the body of the HTTP request if the HTTP request method is
"POST". If the parameter is a nsIDOMDocument, it is serialized. If the
parameter is a nsIInputStream, then it must be compatible with
nsIUploadChannel.setUploadStream, and a Content-Length header will be
added to the HTTP request with a value given by
nsIInputStream.available. Any headers included at the top of the stream
will be treated as part of the message body. The MIME type of the
stream should be specified by setting the Content- Type header via the
setRequestHeader method before calling send.
...
so it sounds like only those 3 types are supported for this method.
Any thought?
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom