Re: Size bug in wget-1.7

2001-08-21 Thread Ian Abbott

On 17 Aug 2001, at 11:41, Dave Turner wrote:

 On Fri, 17 Aug 2001, Dave Turner wrote:
 
  By way of a hack I have used the SIZE command, not supported by RFC959 but
  still accepted by many of the servers I use, to get the size of the file.
  If that fails then it falls back on the old method.  The patch is
  attached, in what I hope is an acceptable format.
 
 Guess who forgot the attachment?  Sorry!

Nice patch. I think it can be improved by only sending the SIZE command 
if the file already exists (has a non-zero size, i.e. restval parameter 
in function getftp is non-zero).

I have attached a slightly modified version of Dave Turner 
[EMAIL PROTECTED]' s patch to add the non-zero restval test, 
remove an unused variable 's' from function ftp_size, and I have 
created the patch using the command cvs diff -uR to make it relative to 
the current CVS sources for wget-1.7.1-pre1.

Here is a ChangeLog entry for it:

2001-08-21  Dave Turner [EMAIL PROTECTED]

* ftp-basic.c (ftp_size): New function to send non-standard SIZE
  command to server to request file size.
* ftp.h (ftp_size): Export it.
* ftp.c (getftp): Use new ftp_size function if restoring
  transfer of a file with unknown size.



 wget-1.7.1-pre1-size-fix.patch


WGET POST

2001-08-21 Thread Sönke Ruempler

Hi,

is there a way to use HTTP POST with wget ??

pls cc to me cuz i am not on the list ;)
-- 


Mit freundlichem Gruß
Sönke Ruempler

top concepts Internetmarketing GmbH
--
http://www.topconcepts.com  Tel. +49 4141 9912 30
mail: [EMAIL PROTECTED]  Fax. +49 4141 9912 33
--
24h-Support Hotline: +49 1908 34697 (€ 1.86/Min,CNS24)
--



Re: WGET POST

2001-08-21 Thread Edward J. Sabol

 is there a way to use HTTP POST with wget ??

Unfortunately, no. Wget doesn't support POSTs yet (only GETs). It will
someday, I hope. If you search the wget mailing list archive, you'll find a
couple source code patches which have implemented the POST capability in
wget, but they have not been accepted for whatever reason by Hrovje, the wget
source maintainer and lead developer. If you absolutely need POST
functionality in wget right away, I could forward some of these source code
patches to you. I have no idea if they work or not, and I cannot assist you
with them. You're welcome to try, however. Please e-mail me directly (not the
mailing list) and I will forward them to you.

Your other option would be to find another program which has this capability.
I believe curl does. Check out http://curl.haxx.se/ for more information.

Hope this helps,
Ed