Boris Zbarsky wrote:
zen wrote:
I writting a simple XPCOM with the following code but the server
script cannot detect the postdata. Could anyone please help? Is this a
bug since the loadURI is actually doing the POST but the server cannot
detect any postdata.
Does Gecko send the data to the server? Can you check with a packet
sniffer?
-Boris
Yes, Gecko did send data to the server. Supprisingly, the HTTP data
constructed through loadURI() is different from the HTTP data
constructed through <form action=POST>.
FYI, loadURI() construct the postdata (*refer code from 1st posting) as
HTTP data while <form action=POST> construct as Line-based text data
(both monitored from ethereal).
Where am I wrong...? Is the loadURI's aPostData argument use in this
manner? If not, how can I manipulate/append postdata? Should I use
nsIUploadStream and how should I use it?
Please advice...
-zen
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib