Xavier RocheandClaude Opus 5.5 be0596c5a0 Report DNS failures through a status, and make -%b bind direct connections (#2340)
The resolver now returns a status and the getaddrinfo code, and the log
message comes from them. No worker thread hands back `gai_strerror()`'s
buffer any more, and Windows shares that buffer between threads. The log
keeps the resolver's reason as a short fixed text, a stopped resolve
says "cancelled", and a cached failure says "(cached)". `-%b` now binds
direct connections too, as the man page says. It binds from the local
address of the server's family and tries the next server address when
binding fails. With `-%b`, a pending connect is kept when no later
address can be opened.

---------

Signed-off-by: Xavier Roche <roche@httrack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:22:55 +00:00
2026-10-28 19:03:34 +00:00
2012-03-24 12:03:55 +00:00
2012-05-08 16:14:10 +00:00
2026-10-28 19:03:34 +00:00

HTTrack Website Copier - Development Repository

CI License

About

Copy websites to your computer (Offline browser)

HTTrack is an offline browser utility, allowing you to download a World Wide website from the Internet to a local directory, building recursively all directories, getting html, images, and other files from the server to your computer.

HTTrack arranges the original site's relative link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the site from link to link, as if you were viewing it online.

HTTrack can also update an existing mirrored site, and resume interrupted downloads. HTTrack is fully configurable, and has an integrated help system.

WinHTTrack is the Windows front end and WebHTTrack the one for Linux, BSD and macOS, where it also arrives with brew install httrack and in the release DMG. There is an Android app too, and underneath all of them the httrack command line.

Website

Main Website: https://www.httrack.com/

Compile trunk release

A git checkout ships only the autotools sources, so ./bootstrap (which runs autoreconf) regenerates configure first; this needs autoconf, automake and libtool. Released tarballs already include configure, so building from a tarball skips ./bootstrap.

git clone https://github.com/xroche/httrack.git --recurse-submodules
cd httrack
./bootstrap
./configure --prefix=$HOME/usr && make -j8 && make install

Or use the one-shot wrapper (bootstrap + configure + make), which forwards its arguments to configure:

./build.sh --prefix=$HOME/usr
S
Description
No description provided
Readme
63 MiB
Languages
C 57%
Shell 30.3%
HTML 6.5%
Python 4.4%
M4 0.7%
Other 0.9%