|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
FTP Upload over Proxy
Hi!
My Machine is behind a proxy server conected to the internet! I want to make a ftp upload of file to a ftp server. Okay, I think the ftp Upload itself is no problem. The big problem is the proxy server! Can anyone help me, and give me some ideas? Or example source code? Thank you! Gernot |
|
#2
|
||||
|
||||
|
I haven't done an ftp upload like you describe. However I was sending a HTTP request (to get the source code of a web page) when using a proxy to connect to the net. This is the code I used to set the proxy. Perhaps it can be tailored for your uses by changing 'http.proxyHost' to 'ftp.proxyHost' (?).
Code:
Properties props = System.getProperties();
props.setProperty("http.proxyHost", "proxy.blah.com");
props.setProperty("http.proxyPort", "3128");
~ishnid
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP Upload over Proxy |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|