wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Added --convert-file-only handling (!456)


From: Archit Pandey
Subject: Re: wget2 | Added --convert-file-only handling (!456)
Date: Wed, 06 Nov 2019 10:05:59 +0000



Archit Pandey commented on a discussion on tests/test-convert-file-only.c: 
https://gitlab.com/gnuwget/wget2/merge_requests/456#note_240719870

> +                             "Content-Type: text/html",
> +                     }
> +             },
> +             {       .name = "/subdir/page7",
> +                     .code = "200 Dontcare",
> +                     .body = "<html><head><title>Page 
> 7</title></head><body>Some Text</body></html>",
> +                     .headers = {
> +                             "Content-Type: text/html",
> +                     }
> +             },
> +
> +     };
> +
> +     const char *mainpagemangled =
> +             "<html><head><title>Main Page</title></head><body><p>A link to 
> a" \
> +             " <a href=\"//localhost:{{port}}/subpage.php.html\">second 
> page</a>." \

According to the 
[docs](https://gitlab.com/gnuwget/wget2/blob/master/docs/wget2.md#-e-adjust-extension),
 using `-E` changes the local filename. 

Using `-E` and `--convert-file-only` together changes the filename part of 
embedded URLs, as discussed 
[here](https://lists.gnu.org/archive/html/bug-wget/2015-06/msg00043.html).

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/merge_requests/456#note_240719870
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]