On Tue, 2005-12-20 at 15:49 +0100, Laat, Harm de wrote:
> Actualy our Proxy is capable of executing FTP requests on the clients
> behalf. 
> 
> I tested this using firefox (Where I have configured our proxy server)
> I run the following URI: ftp://username:[EMAIL PROTECTED]/testdir/
> 
> I use a sniffer to look at the GET commond send to the proxy server. It
> looks as follows:
> 
> GET ftp://username:[EMAIL PROTECTED]/testdir/ HTTP/1.1
> Host: ftp.mytest.test
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12)
> Gecko/20050915 Firefox/1.0.7
> Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
> 0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Proxy-Connection: keep-alive
> 
> Using this request we get access to the directory and see the contents
> displayed.
> However, when I try the same in Java I get the following GET request (Java
> code included below):
> 
> GET ftp://ftp.mytest.test/testdir/ HTTP/1.1
> User-Agent: Jakarta Commons-HttpClient/3.0-rc3
> Host: ftp.mytest.test
> Proxy-Connection: Keep-Alive
> 
> Finally I get a ACCESS DENIED error. 
> This seems to be because the GET request does not contain the USER /
> PASSWORD info in the URL.
> 
> Any Ideas?
> 
> 

Harm,

This appears to be a bug in the URI class. Please file a bug report in
Bugzilla 

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to