Monitor outgoing request body using nsihttpchannel

736 Views Asked by At

I understand that nsIHttpChannel can be used to monitor and manipulate HTTP request/response headers.
However, I am unable to find a way to read the request body (POSTed data). Any pointers are welcome.

1

There are 1 best solutions below

0
On BEST ANSWER

Try querying the channel to an nsIUploadChannel and accessing its uploadStream.