Solved

Accessing FTP Site Through a Proxy Server

Posted on 2000-03-07
10
552 Views
Last Modified: 2010-04-04
Hi

I've been having trouble accessing an FTP site through a Proxy server using Delphi 5 and the Netmasters TNMFTP component. I've been supplied with a proxy address and a proxy port, and am attempting to access the site through dial-up networking.

Whenever I try to connect to the ftp site (using the Connect method), I receive a timeout error :

"HTTP/1.0 408 Request Time-out"

I've also tried different firewall types, passive set at both true and false, but without success.

Using François Piette's Internet Component Suite (TFtpClient), I've tried using the username@ftp with the proxy as the ftp property, but that was also unsuccessful.

Does anyone possibly have a solution for me?

Thanks in advance,
Daniel.
0
Comment
Question by:Solifidian
10 Comments
 

Expert Comment

by:sunsetyang
ID: 2594810
Please make sure that proxy server provides ftp service.
0
 

Author Comment

by:Solifidian
ID: 2594821
Unfortunately I've checked that. I've set up the proxy settings within Internet Explorer, and successfuly accessed the destination FTP from there. I'm not sure if the implementation is the same, but I'm hoping it's similar.
I've also tried 2 ISPs with Proxy servers, and both of them have given the same results.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2594896
Does the C:\Program Files\Borland\Delphi5\Demo\Fastnet\FTP demo work?
0
 
LVL 1

Expert Comment

by:yk030299
ID: 2595080
TNMFTP have properties:
Proxy
ProxyPort
UserID
Password

Did you try it?
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2595840
listenning
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Accepted Solution

by:
jeurk earned 600 total points
ID: 2595894
I had similar problems. Since then I'm using the winshoes component suite and have no longer problems :

http://www.pbe.com/Winshoes

free opensource components

CU


0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2597770
Listening
0
 

Author Comment

by:Solifidian
ID: 2598351
I've tried the Fastnet FTP demo, but that was unsuccessful as well. I'm going to try the Winshoes FTP component and see how I go. If it works, some points coming your way :)
0
 

Author Comment

by:Solifidian
ID: 2598467
Eventually managed to get the proxy working using the Winshoes TSimpleFTP component. Something else I found was that you need to set the ProxyName property using the following syntax :

ftp=proxy:port

eg

'ftp=proxy.isp.com:8080'

Thanks for all your help!

Daniel.
0
 
LVL 4

Expert Comment

by:jeurk
ID: 2603906
hello,

your are right, you have to add the port number in your adress.
To get the proxy parameters automaticaly you can use the param INTERNET_OPEN_TYPE_PRECONFIG for the dwAccessType parameter in the call of internet open. This retrieves the proxy parameter in the registry.

And this is how the winshoes components are doing it.

HINTERNET InternetOpen(
    IN LPCTSTR lpszAgent,
    IN DWORD dwAccessType,
    IN LPCTSTR lpszProxyName,
    IN LPCTSTR lpszProxyBypass,
    IN DWORD dwFlags
);

Look at http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/InternetOpen.asp

this is the ms reference for all the internet related stuff.
http://msdn.microsoft.com/workshop/default.asp

Anyway, I'm pleased it is working.
CU
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

22 Experts available now in Live!

Get 1:1 Help Now