Page 1 of 1
Is it possible to parse an option to wget ?
Posted: Thu Apr 14, 2011 9:34 am
by TheExplorer
Hi everybody, especially Giorgio!

I have a question concerning your FlashGot extension: is it possible to parse an option to wget? For e.g. I always want to parse -c option to wget when downloading anything (-c option means "continue downloading" after the connection was lost for e.g.)
Thank you in advance!
Alex
Re: Is it possible to parse an option to wget ?
Posted: Thu Apr 14, 2011 10:29 am
by Giorgio Maone
Re: Is it possible to parse an option to wget ?
Posted: Thu Apr 14, 2011 2:13 pm
by TheExplorer
Thanks! Sorry I didn't see this page.
The only thing I can't understand what do I have to put there for options. Simply "[URL] -c" would be enough or what exactly do I have to put? I'm using Linux actually.
P.S. None of them seem to work for me... I tried "[URL] -c" and "wget -c"
Re: Is it possible to parse an option to wget ?
Posted: Thu Apr 14, 2011 2:22 pm
by Giorgio Maone
On Linux, you should use /usr/bin/wget (or wherever it is) as the executable path and something like
as the argument template.
Please notice, though, that the built-in wget support already includes the -c argument, having a template like this:
Code: Select all
-c [-O FNAME] [--directory-prefix=FOLDER] [--referer=REFERER] [--post-data=POST] [--load-cookies=CFILE] [--header=Cookie:COOKIE] [--input-file=UFILE] [URL]
Re: Is it possible to parse an option to wget ?
Posted: Thu Apr 14, 2011 2:29 pm
by TheExplorer
Oh, already hardcoded! Thank you very much!