Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CSocket and FTP-connect through a proxy

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

730 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