HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: -%p doesn't work as expected (version 3.33)
Author: Juan Fco Rodriguez
Date: 06/07/2005 13:35
 
This is a patch that I've made against 3.33 htsname.c
I've made up with a new -N option, called "%k", to preserve
the query string as it is. Please tell me what do you think
of it:

--- htsname.c.orig      Tue Jun  7 12:52:28 2005
+++ htsname.c   Tue Jun  7 13:12:05 2005
@@ -889,7 +889,17 @@
             strcatbuff(b, protocol_str[protocol]);
             b+=strlen(b);   // pointer à la fin
                  break;
-        }
+       case 'k':
+            {
+               char *d = strchr(fil_complete,'?');
+              if( d != NULL )
+               {
+                 strcatbuff(b, d);
+                  b+=strlen(b);
+              }
+            }
+            break;
+       }
       } else
         *b++=*a++;
     }
 
Reply Create subthread


All articles

Subject Author Date
-%p doesn't work as expected (version 3.33)

06/07/2005 12:14
Re: -%p doesn't work as expected (version 3.33)

06/07/2005 13:35
Re: -%p doesn't work as expected (version 3.33)

06/11/2005 16:16
Re: -%p doesn't work as expected (version 3.33)

06/13/2005 11:48




2

Created with FORUM 2.0.11