On Wed, Dec 21, 2005 at 09:29:09AM +0100, Laat, Harm de wrote: > I downloaded HttpClient's source package. > What are the basic steps required to compile httpClient so that I can > provide a patch for this bug? > > Regards, > > Harm de Laat >
(1) Get the latest the code snapshot off the SVN repository. For details see: http://jakarta.apache.org/site/cvsindex.html (2) Provide a custom build.properties file if necessary (3) Use 'ant compile' to compile HttpClient (4) Use 'svn diff' to produce a patch I suspect the protected method URI#setURI() is the culprit Hope this helps Oleg > > -----Original Message----- > From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] > Sent: 20 December 2005 23:08 > To: HttpClient User Discussion > Subject: RE: ftp via http > > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]