Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> How To Download/upload File Through A Ftp Proxy Server With 'curl'
saneax
post Feb 27 2007, 05:47 AM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 72
Joined: 1-September 05
Member No.: 8,237



This help is for linux machines behind a FTP proxy.. (Note: Squid is not a true FTP Proxy server)

Say the proxy server is squid configured to be running on ' 192.168.0.10' Port '3128'
then some of the things we can do..

* List Files On FTP Server

curl --proxy 192.168.0.10:3128 ftp://xyz:mypass@sharethespace.com:21

* Download a file

curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 ftp://xyz:mypass@sharethespace.com:21/STSServerInstaller.exe

* Upload multiple files to the ftp server..

curl --upload-file "{rarlinux-3.6.0.tar.gz,vmlogo.xpm}" --verbose --proxy 192.168.0.10:3128 ftp://xyz:mypass@sharethespace.com:21

Note: We are uploading two files ie. rarlinux-3.6.0.tar.gz and vmlogo.xpm, similarly we can state more files, with a comma seperated list.

* We can also give the username/ password in options which is much safer than using it on the URL.

curl --upload-file "{rarlinux-3.6.0.tar.gz ,vmlogo.xpm}" --verbose --proxy 192.168.0.10:3128 -u xyz:mypass ftp://sharethespace.com:21

curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 -u xyz:mypass ftp://sharethespace.com:21/STSServerInstaller.exe

curl --proxy 192.168.0.10:3128 xyz:mypass ftp://sharethespace.com:21/path/to/file


CURL is a free GPL'ed Utility available on various platforms. in linux it comes by default.. in case its not there, please visit http://curl.haxx.se/download.html and download the version required for your platform. Windows Binary download is here

Note: The normal FTP client (Shell or ftp on dos prompt) does not work with ftp proxy servers.

CURL is a free GPL'ed Utility available on various platforms. in linux it comes by default.. in case its not there, please visit http://curl.haxx.se/download.html and download the version required for your platform. Windows Binary download is here

Note: The normal FTP client (Shell or ftp on dos prompt) does not work with ftp proxy servers.
Go to the top of the page
 
+Quote Post
matthewk
post May 24 2007, 04:47 PM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 47
Joined: 24-May 07
Member No.: 22,128



This is a very nice tutorial; thanks smile.gif I've used the curl function in PHP before to grab data from another remote webpage. It's a cool function to be able to grab statistics that are often updated from another website and post information related to that data on your own website.
Go to the top of the page
 
+Quote Post
rockershive
post Sep 26 2007, 03:07 AM
Post #3


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 69
Joined: 21-September 07
Member No.: 24,999



I changed my IP address using a proxy software. But hell the website I visited still identifies my true IP. Any help?
Go to the top of the page
 
+Quote Post
J.C.
post Mar 18 2008, 11:20 PM
Post #4


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 17
Joined: 18-March 08
From: Mississippi
Member No.: 29,226



Thanks! Very nice tutorial!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Setup Your Own TacticalOps Server With Tost(2)
  2. How To Download Videos From Youtube(10)


 



- Lo-Fi Version Time is now: 6th September 2008 - 01:34 AM