Re: [Bug-wget] Question regarding WGET

2011-06-29 Thread Giuseppe Scrivano
are you executing wget from the c:\Windows\system32 directory?

To prevent the file to be being written to the disk, you can specify
-O NUL  on the command line, never tried by myself but I remember it
works under Windows.

Giuseppe



Itay Levin itay.le...@onsettechnology.com writes:

 I'm using it with the following notation:

 WGET http://www.mysite.com/a.aspx

  

 And I noticed that it downloads this page to c:\Windows\system32 folder
 that is being filling up with a.aspx, a.aspx.1 a.aspx.2 and so on...

 Are there any command line flags that I can use to prevent this files to
 being written to disk? 

  

  

 Thanks,

 Itay Levin

 

 OnPage Priority Messaging

 Rise above the clutter(tm)!

 Get your FREE OnPage at: www.OnPage.com http://www.onpage.com/ 

 Follow OnPage on Facebook http://www.facebook.com/OnPage   Twitter
 http://www.twitter.com/On_Page !

  



Re: [Bug-wget] wget IDN support

2011-06-29 Thread Giuseppe Scrivano
Thanks to have reported these problems.  I'll take a look at them in the
next few days.

Cheers,
Giuseppe



Merinov Nikolay kim.roa...@gmail.com writes:

 Current realisation of IDN support in wget not worked when system uses
 UTF-8 locale.

 Current realisation of function `url_parse' from src/url.c call
 `remote_to_utf8' from src/iri.c and set `iri-utf8_encode' to returned
 value.

 Function `remote_to_utf8' can return false in two cases:
 1. They can not convert string to UTF-8
 2. Source text is same as result text

 Second case appear when system use UTF-8 encoding.

 This can be fixed in several places:
 In src/url.c (url_parse) with adding comparing iri-orig_url with UTF-8
 In src/iri.c (remote_to_utf8) with removing if (!strcmp (str, *new))
   test at the end of function.
 Or in src/iri.c (remote_to_utf8) with replacing return status when
   result is same as input string.

 Last variant can be written like this:

 === modified file 'src/iri.c'
 --- src/iri.c 2011-01-01 12:19:37 +
 +++ src/iri.c 2011-06-23 16:34:10 +
 @@ -277,7 +277,7 @@
if (!strcmp (str, *new))
  {
xfree ((char *) *new);
 -  return false;
 +  *new = NULL;
  }
  
return ret;


 Also it can be a good idea to fix src/host.c(lookup_host) with replacing
 usage `gethostbyname_with_timeout' by `getaddrinfo_with_timeout' and
 using AI_IDN flag, if wget compiled with glibc version 2.3.4 or
 newer. It can be helpful when wget compiled without iri support.



Re: [Bug-wget] wget without http

2011-06-29 Thread Giuseppe Scrivano
David H. Lipman dlip...@verizon.net writes:

 If you are using Mapped Drives, there is NO NEED to use WGET as there are 
 plenty of OS 
 utilities from XXCOPY to RoboCopy.

though these tools have two problems, first of all they are not free.
Second, as already reported, they don't follow HTML links.

It could be a good idea to handle file:// as well.

Giuseppe



Re: [Bug-wget] wget without http

2011-06-29 Thread Micah Cowan
(06/29/2011 04:42 AM), David H. Lipman wrote:
 From: Giuseppe Scrivano gscriv...@gnu.org

 though these tools have two problems, first of all they are not free.
 
 RoboCopy is free and was even included in the NT Resource Kit.

(By free, Giuseppe was of course speaking of freedom (free software
or software libre), not price.)

-- 
Micah J. Cowan
http://micah.cowan.name/



Re: [Bug-wget] wget without http

2011-06-29 Thread William Tracy
Not to start an argument, but when you are discussing Free Software, please
capitalize Free to distinguish it from software that doesn't cost money.
It's confusing enough already.

Also, since Erwin is running on Windows, I doubt that he is that concerned
about using strictly Free Software.


William Tracy
Work: wtr...@cisco.com
Play: afishion...@gmail.com
Cell phone: (805) 704-0917
Internet phone: (707) 206-6441


2011/6/29 Micah Cowan mi...@cowan.name

 (06/29/2011 04:42 AM), David H. Lipman wrote:
  From: Giuseppe Scrivano gscriv...@gnu.org

  though these tools have two problems, first of all they are not free.
 
  RoboCopy is free and was even included in the NT Resource Kit.

 (By free, Giuseppe was of course speaking of freedom (free software
 or software libre), not price.)

 --
 Micah J. Cowan
 http://micah.cowan.name/




Re: [Bug-wget] Question regarding WGET

2011-06-29 Thread Giuseppe Scrivano
Itay Levin sit...@gmail.com writes:

 no i didn't specify any output dir - so it by default created the
 files in c:\windows\system32

but still it could be the working directory where wget is executed.

Giuseppe