Page 1 of 1

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

Posted: Sat Sep 26, 2009 3:10 pm
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

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

Posted: Sat Sep 26, 2009 3:26 pm
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.

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

Posted: Sat Sep 26, 2009 3:53 pm
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...