Hi,
I am having trouble redirecting XMLHttpRequest from firefox add-
on. Main problem is that nsIURI is immutable in a nsiChannel, as a
result can't change it to another uri. I have tried to redirect
channel
using nsiChannelEventSink, but haven't found any success yet.

In nutshell, whenever an HTTP request is made, I'd like to intercept
this and based on a condition i want to redirect the request to
another ip address/port.

Any comments or suggestions will be a great help.

Thanks