how to use proxy when i use curl as default DM in linux?

Ask for help about FlashGot, no registration needed to post
Post Reply
newby

how to use proxy when i use curl as default DM in linux?

Post by newby »

how do i use proxy when i use curl as my default download manager? there's no argument template in curl.. if i have to make another custom curl as my download manager, could you give me some example on how the argument template would look like? because i write this:

Code: Select all

-C - -L -O --socks4 127.0.0.1:8080 -X 127.0.0.1:8080 [--referer REFERER] [-b COOKIE] [-d POST] [URL]
in argument template and it didn't work
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090718 IceCat/3.5.1
User avatar
Giorgio Maone
Site Admin
Posts: 9528
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: how to use proxy when i use curl as default DM in linux?

Post by Giorgio Maone »

Why the single dash there (after -C)?

As a reference, the default built-in cURL arguments template is:

Code: Select all

-L -O [-o FNAME] [--referer REFERER] [-b COOKIE] [-d POST] [URL]
And BTW, you can use the built-in and add the proxy additional parameters in $HOME/.curlrc -- check curl's man page for reference.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
newby

Re: how to use proxy when i use curl as default DM in linux?

Post by newby »

thank's man... i'll give it a try
oh and btw i use -C - because in curl man say this:

Code: Select all

       -C/--continue-at <offset>
              Continue/Resume a previous file transfer at the  given  offset.  The  given
              offset  is  the exact number of bytes that will be skipped counted from the
              beginning of the source file before it is transferred to  the  destination.
              If used with uploads, the ftp server command SIZE will not be used by curl.

              Use "-C -" to tell curl to automatically find out where/how to  resume  the
              transfer. It then uses the given output/input files to figure that out.

              If this option is used several times, the last one will be used.
this is my first time using curl so i don't know much about it...
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090718 IceCat/3.5.1
Post Reply