V
vbhanu
Hi all,
I have a program which does the followin:
I want to download a html file from a site and then parse it to my
needs. So what i do is construct a string which looks like
wget http://the.site.com/folder/file.html
and the i make the call
printf("%s\n",str);
system(str);
the printf part shows the string to be fine but wget is attempting to
download http://the.site.com/folder/file.html which definitely would
not be on the server. Please tell me what is wrong with this and how to
get around. Also is there is a better way to download a file from net
then please mention that also.
Anticipating a reply,
Thank you,
Bhanu
I have a program which does the followin:
I want to download a html file from a site and then parse it to my
needs. So what i do is construct a string which looks like
wget http://the.site.com/folder/file.html
and the i make the call
printf("%s\n",str);
system(str);
the printf part shows the string to be fine but wget is attempting to
download http://the.site.com/folder/file.html which definitely would
not be on the server. Please tell me what is wrong with this and how to
get around. Also is there is a better way to download a file from net
then please mention that also.
Anticipating a reply,
Thank you,
Bhanu