See the URL capture abilities (--catchurl for command-line, or in the WinHTTrack interface).
--catchurl