Explain cURL Wget & the like?

Ask for help about FlashGot, no registration needed to post
Post Reply
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Explain cURL Wget & the like?

Post by therube »

Explain cURL Wget & the like, if you would, & in particular relating to Windows.

cURL & Wget have "built in" support by FlashGot?
But as they are not "installed", as their selections are grayed out, how do you go about selecting & using them?


If I add a download manager, CURL2 & I set that up in a batch file:

(line breaks for readability, CURL.BAT)

Code: Select all

cd c:\out && 
curl.exe -v -O
-A "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/5.0)"
--referer http://www.example.com/
--url "%1"
pause
exit
Arguments:
[URL]


That will then pass [URL](s) to curl (as %1), downloading each URL in turn.

And if I wanted to pass the referrer:

Arguments:
[URL] [REFERER]

& change: --referer http://www.example.com/ to --referer "%2"
& so on - for the easy stuff?
(Well maybe not so easy, or at least not all that obvious?)

Now if I wanted to send cookies too: --cookie in CURL.BAT, & [COOKIE], but just where is cookie going (written to, is it only %APPDATA%) & how do I point --cookie to it?
And if I wanted a POST --data or a --get? (That is once I figure out why I may want one or the other, & just what I am posting or getting? Am I able to send a (POST) --data for one URL followed by a --get for another, in one go or would I need to do that with two separate curl's?)

Now how about the built-in definitions, how are they meant to work?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17a2
Post Reply