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