bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] URL rewriting when resource name is in a variable


From: Ander Juaristi
Subject: Re: [Bug-wget] URL rewriting when resource name is in a variable
Date: Mon, 17 Aug 2015 16:16:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 08/17/2015 05:04 AM, Murali Ramanujam wrote:
Hi


When I try to save the attached HTML page (original.html) with  wget -k -p, the 
resource path gets mangled in the rewrite process (saved.html is output of 
wget).


If I understood you well, you execute

    wget -k -p http://localhost/original.html

and get a file called 'saved.html' as a result?!

What do you mean with "resource name is in a variable"? What's the exact command you executed on the console?


The saved page gives a SyntaxError error when opened. In addition, it looks 
like wget is trying to rewrite the src to http://localhost/loc but it should be 
http://localhost/script.js.


Script.js is just console.log(1);


Is this a valid bug? Is there any way to get expected behaviour from wget in 
such a situation?



Could you pass the flag '--debug' and post the output?



Thanks
Murali



Regards,
- AJ



reply via email to

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