You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Mohd Akhbar <my...@gmail.com> on 2013/10/24 14:40:10 UTC

Handling FTP request.

Hi,

If i'm not mistaken, ATS don't support FTP protocol right ? And since most
FTP sites also have their HTPP alternative to FTP, how can i configure the
ATS to convert the request from FTP to HTTP. eg. ftp://ftp.site.com to
http://ftp.site.com

Thanks

Re: Handling FTP request.

Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----

> Hi,

Hi, 

> If i'm not mistaken, ATS don't support FTP protocol right ? And since most
> FTP sites also have their HTPP alternative to FTP, how can i configure the
> ATS to convert the request from FTP to HTTP. eg. ftp://ftp.site.com to
> http://ftp.site.com

No. FTP support was ripped out *before* the Open Source release. 

> Thanks

++ i 
Igor Galić 

Tel: +43 (0) 664 886 22 883 
Mail: i.galic@brainsware.org 
URL: http://brainsware.org/ 
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE 

Re: Handling FTP request.

Posted by "Adam W. Dace" <co...@gmail.com>.
Just FYI...a lot of FTP sites don't have that particular mapping setup.

The only reason I know is I've been doing a lot of testing lately, long
story.
One thing I do know...if you need to test HTTP bandwidth, CentOS Linux ISO
images are a good place to start.


On Thu, Oct 24, 2013 at 7:40 AM, Mohd Akhbar <my...@gmail.com> wrote:

> Hi,
>
> If i'm not mistaken, ATS don't support FTP protocol right ? And since most
> FTP sites also have their HTPP alternative to FTP, how can i configure the
> ATS to convert the request from FTP to HTTP. eg. ftp://ftp.site.com to
> http://ftp.site.com
>
> Thanks
>



-- 
____________________________________________________________
Adam W. Dace <co...@gmail.com>

Phone: (815) 355-5848
Instant Messenger: AIM & Yahoo! IM - colonelforbin74 | ICQ - #39374451
Microsoft Messenger - colonelforbin74@live.com <ad...@turing.com>

Google Profile: https://plus.google.com/u/0/109309036874332290399/about

Re: Handling FTP request.

Posted by David Boreham <da...@bozemanpass.com>.
On 10/24/2013 8:29 PM, Mohd Akhbar wrote:
> out of those two, which one is possible ? From the way ask, seems like 
> the second one is doable. If can, how can i implement it ? 

I don't know of a way to do this with ATS out-of-the-box. If you look at 
this project :

http://frox.sourceforge.net/

It implements fetching from an HTTP proxy (rather than an HTTP origin 
server) by constructing an HTTP GET request with an ftp://... URL -- 
source code here :

http://www.hollo.org/cgi-bin/darcs?frox*./src/httpcache.c*20050701155136-91d48-6109433d0c1a6a3fa024cf5535fc8f559c233cfe.gz*./src/httpcache.c*20040228025012-91d48-4a1ed38bce14ec7dc95335e69d39394d5a670670.gz

You could presumably use ATS as the HTTP proxy in a similar setup.



Re: Handling FTP request.

Posted by Mohd Akhbar <my...@gmail.com>.
out of those two, which one is possible ? From the way ask, seems like the
second one is doable. If can, how can i implement it ? Thanks for advise.


On Fri, Oct 25, 2013 at 8:54 AM, David Boreham <da...@bozemanpass.com>wrote:

> On 10/24/2013 6:08 PM, Mohd Akhbar wrote:
>
>> I guess its like what James's first question, ATS to accept FTP and
>> switch them to HTTP, or maybe rewrite back the request by replacing FTP
>> with HTTP. Is it possible ?
>>
>>
> Do you want to "redirect" the FTP client to HTTP (likely not possible
> since the FTP protocol has no notion of redirect nor URL) ?
> Or do you want to proxy an inbound FTP client as an outbound HTTP session
> ? (make an HTTP-only server work with both HTTP and FTP clients) ?
>
>
>
>
>

Re: Handling FTP request.

Posted by David Boreham <da...@bozemanpass.com>.
On 10/24/2013 6:08 PM, Mohd Akhbar wrote:
> I guess its like what James's first question, ATS to accept FTP and 
> switch them to HTTP, or maybe rewrite back the request by replacing 
> FTP with HTTP. Is it possible ?
>

Do you want to "redirect" the FTP client to HTTP (likely not possible 
since the FTP protocol has no notion of redirect nor URL) ?
Or do you want to proxy an inbound FTP client as an outbound HTTP 
session ? (make an HTTP-only server work with both HTTP and FTP clients) ?





Re: Handling FTP request.

Posted by Mohd Akhbar <my...@gmail.com>.
I guess its like what James's first question, ATS to accept FTP and switch
them to HTTP, or maybe rewrite back the request by replacing FTP with HTTP.
Is it possible ?


On Thu, Oct 24, 2013 at 11:03 PM, James Peach <jp...@apache.org> wrote:

> On Oct 24, 2013, at 5:40 AM, Mohd Akhbar <my...@gmail.com> wrote:
>
> > Hi,
> >
> > If i'm not mistaken, ATS don't support FTP protocol right ? And since
> most FTP sites also have their HTPP alternative to FTP, how can i configure
> the ATS to convert the request from FTP to HTTP. eg. ftp://ftp.site.comto
> http://ftp.site.com
>
> I'm not that clear on what you want. Do you want ATS to accept FTP
> connections and somehow switch them over to HTTP? Or do you want to
> transform HTML content to replace FTP URLs with the equivalent HTTP ones?
>
> J

Re: Handling FTP request.

Posted by James Peach <jp...@apache.org>.
On Oct 24, 2013, at 5:40 AM, Mohd Akhbar <my...@gmail.com> wrote:

> Hi,
> 
> If i'm not mistaken, ATS don't support FTP protocol right ? And since most FTP sites also have their HTPP alternative to FTP, how can i configure the ATS to convert the request from FTP to HTTP. eg. ftp://ftp.site.com to http://ftp.site.com

I'm not that clear on what you want. Do you want ATS to accept FTP connections and somehow switch them over to HTTP? Or do you want to transform HTML content to replace FTP URLs with the equivalent HTTP ones?

J