Re: Help Needed

2004-11-05 Thread Mauro Tortonesi
Alle 18:47, martedì 2 novembre 2004, hai scritto:
 Hello.
 Does wget have a nntp (Usenet newsgroups) support?

not at the moment.

 For example, I might want download all articles between
 numbers M and N. A date based system could be useful too.
 We just should agree how these queries are represented to
 wget.

i don't think NNTP support will be included in the wget package, at least for 
now. however, i would really like to know if there is actually anyone 
interested in having NNTP support in wget.
 
 I can dig out an old Usenet news downloader code if wget
 does not have one yet.

i wouldn't bother looking for an NNTP downloader utility. you can easily write 
your own with less than 20 lines of python:

http://www.python.org/doc/2.3.4/lib/module-nntplib.html

;-)

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi

University of Ferrara - Dept. of Eng.http://www.ing.unife.it
Institute of Human  Machine Cognition   http://www.ihmc.us
Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it


Help Needed

2004-11-02 Thread Phani Kumar Anumolu
  
Dear Wget Users, 
  I am a newbie interestd in C socket programming. 

I would like to get a single file from the URL given, that URL must be passed as an 
input to my program, and that program should automatically retrive that file from the 
URL given. My requirement is NOT towards handling all the complexities which are 
addressed in WGET.

Can some body send me a sample code with which I can download a single file from the 
URL given. I am writing in C and tried to understand Wget..which looked very 
complicated. 

Any further suggestion are appreciated.

for example: 
int main()
{
int i = getfile(http://ftp.example.com/;, FlatFileName.txt);
 // in this way i want to pass that URL, 

  if ( i != 0 ) printf( Successfully Downloaded\n);
  else printf(HTTP address invalid\n);
  
return 0;
}

Could you please help me with a small sample code...
thank you very much..
looking forward...


A.V.S.Phani Kumar

Re: Help Needed

2004-11-02 Thread Mauro Tortonesi

Alle 10:36, martedì 2 novembre 2004, Phani Kumar Anumolu ha scritto:
 Dear Wget Users,
 I am a newbie interestd in C socket programming.
 I would like to get a single file from the URL given, that URL must be
 passed as an input to my program, and that program should automatically
 retrive that file from the URL given. My requirement is NOT towards
 handling all the complexities which are addressed in WGET.
 Can some body send me a sample code with which I can download a single file
 from the URL given. I am writing in C and tried to understand Wget..which
 looked very complicated.
 Any further suggestion are appreciated.

why are you using C for URL retrieval? it is a very complex task to perform
 in C (definitely not for newbies) and it is completely useless to understand
 how the socket api works.

if you want to retrieve an URL from the internet the best choice would
probably be python:

#!/usr/bin/env python
import urllib

(name, header) =
urllib.urlretrieve(http://www.python.org/doc/2.3.4/lib/module-urllib.html;)

or perl with libwww:

#!/usr/bin/perl -w

use LWP::Simple;

$url = 'http://www.python.org/doc/2.3.4/lib/module-urllib.html';
$content = get $url;
die Couldn't get $url unless defined $content;

please notice that the examples above are working but not complete.

anyway, i would recommend you to learn how the socket api works in python or
perl before messing with the C socket api, which is much more complex.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi

University of Ferrara - Dept. of Eng.http://www.ing.unife.it
Institute of Human  Machine Cognition   http://www.ihmc.us
Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it


Re: Help Needed

2004-11-02 Thread Juhana Sadeharju
Hello.
Does wget have a nntp (Usenet newsgroups) support?
For example, I might want download all articles between
numbers M and N. A date based system could be useful too.
We just should agree how these queries are represented to
wget.

I can dig out an old Usenet news downloader code if wget
does not have one yet.

Juhana


Help needed ...

2004-11-01 Thread Phani Kumar Anumolu
Dear Wget Users, 
   I am a newbie trying to write a small download program in linux which 
should get a specific file given in the URL similar to wget.

My requirement is NOT towards handling all the complexities which 
are addressed in WGET.

Can some body send me a sample code with which I can download a single file from the 
URL given. I am writing in C and tried to understand Wget..which looked very 
complicated. 

Any further suggestion are appreciated.

for example: 
int main()
{
int i = getfile(http://ftp.gnu.org/pub/gnu/wget/;, wget-1.9.tar.gz);

   if ( i != 0 ) printf( Successfully Downloaded\n);
   else printf(HTTP address invalid\n);
   
return 0;
}

Could you please help me with a small sample code...
thank you very much..
looking forward...
Satya.

A.V.S.Phani Kumar

Re: Help needed ...

2004-11-01 Thread Daniel Stenberg
On Mon, 1 Nov 2004, Phani Kumar Anumolu wrote:
Can some body send me a sample code with which I can download a single file
from the URL given. I am writing in C and tried to understand Wget..which 
looked very complicated.
Consider using libcurl: http://curl.haxx.se/libcurl/
... or a competitor: http://curl.haxx.se/libcurl/competitors.html
--
 -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
  ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol


Re: Help needed! How to pass XML message to webserver

2003-09-10 Thread Mauro Tortonesi
On Mon, 8 Sep 2003, Vasudha Chiluka wrote:

 Hi ,

 I need to pass XML message to a webserver using http.
 Could anybody tell me how I can accomplish this using wget.
 Any help is greatly appreciated..

why would you want to use wget for this? try with nc6:

echo -en PUT http://theurl HTTP 1.1\n`cat file.xml` | nc6 servername 80

you can find nc6 at http://www.deepspace6.net. if the server is ipv4 and
you don't need the advanced functions of nc6, you can also use the plain
old nc instead of nc6.

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Deep Space 6 - IPv6 with Linux  http://www.deepspace6.net
Ferrara Linux User Grouphttp://www.ferrara.linux.it




Re: Help needed! How to pass XML message to webserver

2003-09-09 Thread Aaron S. Hawley
Wget doesn't currently have http file upload capabilities, but if this XML
message can be sent by cgi POST parameters then Wget could probably do it.
but you'll need to figure out how exactly the XML message is sent using
http.

/a

On Mon, 8 Sep 2003, Vasudha Chiluka wrote:

 Hi ,

 I need to pass XML message to a webserver using http.
 Could anybody tell me how I can accomplish this using wget.
 Any help is greatly appreciated..

 Thanks
 Vasudha


Help needed! How to pass XML message to webserver

2003-09-08 Thread Vasudha Chiluka
Hi ,
 
I need to pass XML message to a webserver using http.
Could anybody tell me how I can accomplish this using wget.
Any help is greatly appreciated..
 
Thanks
Vasudha


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

WGET help needed

2003-06-11 Thread Support, DemoG
hello,

I need help on this subject:
Please tell me what is the command line if i wanted to get all the files, 
subdirectories with all contained from a ftp like ftp.mine.com
also i have the user and pass, and i will use this in Shell.




Re: WGET help needed

2003-06-11 Thread Aaron S. Hawley
http://www.gnu.org/manual/wget/

On Wed, 11 Jun 2003, Support, DemoG wrote:

 hello,

 I need help on this subject:
 Please tell me what is the command line if i wanted to get all the files, 
 subdirectories with all contained from a ftp like ftp.mine.com
 also i have the user and pass, and i will use this in Shell.