COPY Action

<< Click to Display Table of Contents >>

Navigation:  Event and Object Analysis > Capture Results Filtering > Prefiltering HTTP Requests > Actions >

COPY Action

Copies the HTTP object currently being processed (the request and the response, if any) and its passport to the specified folder.

Description

The action copies the HTTP object currently being processed (the request and the response, if any) and its passport to the specified folder.

Format

<action name="copy" value="<folder path>"/>

The "name" attribute:

The name attribute specifies the name of the action: name="copy".

The value attribute:

The value="..." attribute specifies the path to the folder to which the data should be copied.

If the folder doesn't exist, it will be created.

Example:

Copy requests to win.mail.ru to d:\data_from_mail.ru.

<?xml version="1.0" encoding="utf-8"?>
<filter name="TEST" version="1.0">
 <comment>This is a comment for the filter.</comment>
 <table name="main">
 
   <rule enabled="true">
     <comment>
       Copy requests for win.mail.ru to d:\data_from_mail.ru.
     </comment>
     <match>
       <c name="req-header"
          headername="Host"
          op="eq"
          value="win.mail.ru" />
     </match>
       <action name="copy" value="d:\data_from_mail.ru"/>
   </rule>
 
   <rule enabled="true">
     <match><c name="all"/></match>
     <action name="accept" />
   </rule>
 
 </table>
</filter>