« Return to Thread: Using XSL sheet to exclude resources from grinder proxy

Re: Using XSL sheet to exclude resources from grinder proxy

by portail galaxie :: Rate this Message:

| View in Thread

Any one please ?

On Thu, Jun 21, 2012 at 6:19 PM, portail galaxie <portail.galaxie@...> wrote:
Hello,

I am trying to use xslt sheet to exclude a list of resources, my xsl file is as follow :
<?xml version="1.0" encoding="UTF-8"?>
<!---->
<xsl:stylesheet   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"   xmlns:g="http://grinder.sourceforge.net/tcpproxy/http/1.0"  xmlns:helper="net.grinder.plugin.http.tcpproxyfilter.XSLTHelper">
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.css')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.jpg')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.jpeg')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.png')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.ico')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.gif')]" mode="page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.js')]" mode="
page-function"/>
    <xsl:template match="g:request[contains(g:uri/g:path/g:text,'.swf')]" mode="
page-function"/>
    <g:page mode="TestRunner">
        <xsl:value-of select="helper:newLineAndIndent()"/>
        <xsl:text>result=None</xsl:text>
    </g:page>
</xsl:stylesheet>


Can any one help me please.

java -classpath %CLASSPATH% net.grinder.TCPProxy -console -http pathtomyfile\sheet.xsl -properties TCPProxy.properties > mygrinder.py

Thx.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

 « Return to Thread: Using XSL sheet to exclude resources from grinder proxy