Skip to content

Expose post-3.49-2 engine options in webhttrack#589

Merged
xroche merged 1 commit into
masterfrom
expose-webhttrack-options
Jul 15, 2026
Merged

Expose post-3.49-2 engine options in webhttrack#589
xroche merged 1 commit into
masterfrom
expose-webhttrack-options

Conversation

@xroche

@xroche xroche commented Jul 15, 2026

Copy link
Copy Markdown
Owner

webhttrack was frozen before the engine gained SOCKS5 proxying, --cookies-file, --pause, --strip-query, and the three --keep-* opt-outs of the -%u URL hack. This adds all of them to the web GUI, bringing it level with WinHTTrack (xroche/httrack-windows#31). Each option threads through the existing template machinery: a field on its option tab, the generated httrack command, the winprofile.ini that persists the project, and the reload remap in step2. The winprofile.ini key names match WinHTTrack's, so a project saved in one GUI reloads in the other.

The SOCKS5 selector reuses the single proxy field and prepends socks5:// to -P. It is gated on a non-empty host, so picking SOCKS5 with a blank proxy can't leak a stray socks5:// token into the command. Labels and tooltips reuse the LANG_ strings already translated across all 30 language files in #588. --why is left out (a diagnose-and-exit mode, not a mirror setting), matching the Windows decision.

Verified against a live htsserver render: the generated command, the winprofile.ini, and the reload round-trip all behave, including the HTTP and empty-host edge cases.

Closes #587

The web GUI was frozen before the engine gained SOCKS5 proxying, --cookies-file,
--pause, --strip-query, and the three --keep-* URL-hack opt-outs. Wire each into
the option tabs, the generated httrack command, the winprofile.ini persistence,
and the reload remap so they reach parity with WinHTTrack (xroche/httrack-windows#31).

The SOCKS5 selector reuses the single proxy field and prepends socks5:// to -P;
it is gated on a non-empty host so a SOCKS5-selected-but-blank config can't emit a
stray scheme token. winprofile.ini key names match WinHTTrack so projects round-trip
across both GUIs. Labels/tooltips reuse the LANG_ strings already added in #588.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche merged commit cfe7c7e into master Jul 15, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose post-3.49-2 engine options in webhttrack (SOCKS5, cookies-file, pause, keep-*, strip-query, UA)

1 participant