Solved

CSocket and FTP-connect through a proxy

Posted on 2002-06-20
4
338 Views
Last Modified: 2013-11-20
I'm using a CSocket object and call Connect with the Proxy hostname and portnumber as parameters, it works fine, I get the connection to the proxy. The problem is when I want to connect to ftp.sunet.se. How do I after I connect to the proxy, let the socket know that the connection should "point to" to ftp.sunet.se?
0
Comment
Question by:joakimf
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:daitt
ID: 7098542
it depends on the protocol your proxy is using. It can be socks (4 or 5), ftp proxy or SSL Tunneling.
For example, for ftp proxy which uses USER user@hostname, after connected, you can send a command:
USER remote-user@remote-host.com
There are many types of ftp proxies
0
 
LVL 1

Author Comment

by:joakimf
ID: 7102065
Yes, I'm aware that there are many different proxies, the problem is that when I try to send a command such as USER remote-user@remote-host.com, the response is "unknown command", am I using the command wrong?

/Joakim
0
 
LVL 3

Accepted Solution

by:
daitt earned 200 total points
ID: 7102187
check with the other ftp clients to see which command can be used (you can try windows commander). Sometimes you need to send "SITE", sometimes you send "OPEN" .. depends on the proxy type
What is your proxy server software ?
0
 
LVL 1

Author Comment

by:joakimf
ID: 7102898
Got it to work, my own fault, forgot to check a string I sent to the server, but it works now when I send anonymous@ftp.sunet.se, I can login. Thanks for your help and comments, the points are yours.

/Joakim
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now