• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

FTP behind proxy

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am writing a simple ftp client program to download a file from a ftp site. The site requires login and the ftp client is behind a proxy.
I did find some sample show you how to do FTP. Also, some show you how to work with proxy. But not both.
the following is the codes I use. I got IOException "HTTP response code: 401" if the urlString contains userinfo (ftp://user [email protected]/file)
But "ftp://ftp.site/file" works fine.
I think the problem is the communication between the java program and the proxy server. Could anyone help me?

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic