HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Keep query string
Author: Xavier Roche
Date: 05/26/2003 19:09
 
> Is it possible to keep (at least a part of) the query 
> string?> E.g. if I mirror ...showthread.php?s=&threadid=5330
> I want to keep '5330'.
> In the userdefined structure options there is only %Q and 
%
> q but no way to add the whole query string or am I 
missing 
> something?
This is badly documented, but you can use %[threadid]
(see httrack --help)

  '%[param]' param variable in query string
  '%[param:before:after:notfound:empty]' advanced variable 
extraction

   param : parameter name
   before : string to prepend if the parameter was found
   after : string to append if the parameter was found
   notfound : string replacement if the parameter could not 
be found
   empty : string replacement if the parameter was empty
   all fields, except the first one (the parameter name), 
can be empty

Example:
%[threadid]
will include the threadid variable

you can also use things like:
%[threadid:_:_:none:none]

 
Reply Create subthread


All articles

Subject Author Date
Keep query string

05/26/2003 12:34
Re: Keep query string

05/26/2003 19:09
Re: Keep query string

05/26/2003 23:01
Re: Keep query string: additional question

05/27/2003 00:04
Re: Keep query string: additional question

05/27/2003 20:05




d

Created with FORUM 2.0.11