Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSocket and FTP-connect through a proxy

Posted on 2002-06-20
4
Medium Priority
?
380 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 600 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

963 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