From: Francois-Xavier B. <fra...@ce...> - 2015-03-18 21:01:25
|
I think this is feasible but it is going to be a little complex. First HttpRequest.getAttribute method has nothing to do with post parameters. If you want to get the request parameters you will have to read them from the request entity before it is forwarded to the target server. You should find a utility class in Apache HttpClient lib in order to do that. Then you will have another issue because an entity is supposed to be consumed only once as it wraps an Inputstream so you will have to build a new entity to replace the original one so that EsiGate can still send the request to the target server. Le 18 mars 2015 19:06, "Peter Schroer" <pet...@bl...> a écrit : > Hello, > > > > Is it possible to read attributes send to the webpage by post out of the > render event? I’m writing an extension which does some replacements on the > webpage before rendering. The replacements are depending on the parameters > send to the webpage by post. I tried > renderEvent.getOriginalRequest().getOriginalRequest().getAttribute("...") > but this works only for parameters send by post. > > > > Greetings > Peter Schroer > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Webassembletool-users mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webassembletool-users > > |