Solved

CSocket and FTP-connect through a proxy

Posted on 2002-06-20
4
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

630 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