Here is my case:

I use httpChannel to open an asynchronous request, before call
AsyncOpen, I called SetRequestHeader to the new channel, and I do check
the header to see if I've set it successfully. Specifically, I want to
set the User-Agent to be a different one, but when the request got send
out, I checked the server log, the User-Agent still using Mozilla's
default one. But the same code works when running in IE. Is this
because if the plugin running in firefox, then you can't change the
header at runtime, it is taking the browser's default? Since I tried to
set x-header, it didn't work either.

How would I add some user specified header to the connection? Any
suggestion is appreciated.

Thanks.

Kate.

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to