Re: [Bug-wget] fix: wget hangs with -r and -O - (bug #40426)

2013-11-14 Thread Tim Rühsen
Am Montag, 11. November 2013, 18:06:53 schrieb daniele.cal...@tin.it:
 Hello,
 
 In attachment a fix of the bug #40426

Hi Daniele,

thanks for your contribution.

But it would be nice to have -O and -r working together.

Did you try to find out why Wget blocks ?

Regards, Tim


signature.asc
Description: This is a digitally signed message part.


Re: [Bug-wget] fix: wget hangs with -r and -O - (bug #40426)

2013-11-14 Thread Tim Rühsen
Am Donnerstag, 14. November 2013, 21:00:13 schrieb Tim Rühsen:
 Am Montag, 11. November 2013, 18:06:53 schrieb daniele.cal...@tin.it:
  Hello,
  
  In attachment a fix of the bug #40426
 
 Hi Daniele,
 
 thanks for your contribution.
 
 But it would be nice to have -O and -r working together.
 
 Did you try to find out why Wget blocks ?

You are right in fixing it the quick way.
Since Wget's designers decided to first save to disk and then load again the 
same file, -O - and -r won't work together.

Wget is hanging because it reads from STDIN and waits for data.

To fix it, the downloaded file should stay in memory to be parsed OR be saved 
twice when -O - comes together with -r ...

Tim


signature.asc
Description: This is a digitally signed message part.


[Bug-wget] Strangest result from downloading 1 file with wget.

2013-11-14 Thread Michel Rod

Hello WGET community,

Could anybody shed some light:

If I do:
wget http://www.prismcasino.com/wp-includes/js/jquery/jquery.js;
The file contents goes as expected a bunch of jquery code.

If i do:
wget http://www.prismcasino.com/wp-includes/js/jquery/jquery.js?ver=1.10.2;
The file contents is completely corrupted looks like binary?

The ?ver shouldnt change the content of a flat file.

I tried downloading it by forcing utf-8 but my wget says does not have 
support for IRIs.. iam not sure this has anything to do with it.


Why such behaviour?