the http proxy support code is in external/qemu/proxy/proxy_http_rewriter.c you should be able to modify it to inject the header you need.
Apart from that, this is not supported by the current binary, so an alternative is to use a different proxy to do that. You can still use -debug-proxy to dump the messages exchanged between the emulator and the proxy. This can be useful to debug problems there. On Tue, Mar 17, 2009 at 7:18 PM, Greg Krimer <gkri...@gmail.com> wrote: > > Hi everyone, > > Is there an easy way to inject a header into all HTTP request sent > from the emulator, including HTTP requests made by my app and also by > the built-in web browser? I need this ability to model the behavior of > a carrier gateway. I tried running the emulator through Fiddler as a > proxy because I know how to manipulate HTTP requests in Fiddler, but > that that didn't work. The emulator was successfully able to make the > first HTTP request, but choked on subsequent ones. Reading this list, > it seems that getting the emulator to use a proxy is not is not that > easy. If this is the only way to do what I need, then I'll certainly > give it another shot and post details about any problems I encounter. > I am just wondering if perhaps there is an easier way to inject a > header. > > Thanks, > > Greg > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---