Subject: Re: Package anon ftp login.
To: None <AlistairCrooks@excite.com>
From: Eric Fox <eric@fox.phoenix.az.us>
List: tech-pkg
Date: 10/06/2000 08:57:58
Okay, here's the results of performing the ftp manually as you suggested:

  $ env | grep proxy
  https_proxy=http://webproxy.crn.st.com:80/
  http_proxy=http://webproxy.crn.st.com:80/
  ftp_proxy=http://webproxy.crn.st.com:80/
  
  $ ftp -d http://www.netbsd.org/index.html
  parse_url: user `<null>' pass `<null>' host www.netbsd.org:80 path `/index.html'
  got savefile as `index.html'
  parse_url: user `<null>' pass `<null>' host webproxy.crn.st.com:80 path `/'
  Requesting http://www.netbsd.org/index.html
    (via http://webproxy.crn.st.com:80/)
  received `HTTP/1.0 407 Proxy Authentication Required'
  received `Proxy-agent: Netscape-Proxy/3.53'
  received `Date: Fri, 06 Oct 2000 15:52:39 GMT'
  received `Proxy-Authenticate: basic realm="unspecified"'
  parsed proxy-auth as: basic realm="unspecified"
  received `Content-Type: text/html'
  received `Content-Length: 271'
  parsed length as: 271
  received `X-Cache: MISS from lps1.crn.st.com'
  received `Proxy-Connection: close'
  407 Proxy Authentication Required
  auth_url: challenge `basic realm="unspecified"'
  Username for `unspecified': eric fox
  Password: $$$$$$
  parse_url: user `<null>' pass `<null>' host www.netbsd.org:80 path `/index.html'
  got savefile as `index.html'
  parse_url: user `<null>' pass `<null>' host webproxy.crn.st.com:80 path `/'
  Requesting http://www.netbsd.org/index.html
    (via http://webproxy.crn.st.com:80/)
    (with proxy authorization)
  received `HTTP/1.0 407 Proxy Authentication Required'
  received `Proxy-agent: Netscape-Proxy/3.53'
  received `Date: Fri, 06 Oct 2000 15:52:44 GMT'
  received `Proxy-Authenticate: basic realm="unspecified"'
  parsed proxy-auth as: basic realm="unspecified"
  received `Content-Type: text/html'
  received `Content-Length: 271'
  parsed length as: 271
  received `X-Cache: MISS from lps1.crn.st.com'
  received `Proxy-Connection: close'
  407 Proxy Authentication Required
  Authorization failed. Retry (y/n)? 

BTW: This is with NetBSD 1.4.2.  Any further ideas?
[fox]


You wrote:
> 
> On Thu, 5 Oct 2000 20:17:42 -0700 (MST), Eric Fox wrote:
> 
> >  
> >  Actually, what I'd find much more usefull would be the ability to perform
> >  ftp's through a web proxy when performing a 'make' in pkgsrc.  
> >  
> >  So far, I've set the environment variables http_proxy, https_proxy, and
> >  ftp_proxy to the proxy server.  This appears to sort-of work, because the
> >  FTP process stops and asks for a proxy username and password, but then it
> >  fails.
> 
> Sounds like you have a weird proxy there.
> 
> Can you try it from the command line? Something like:
> 
> env  http_proxy=http://myproxyname:myproxyport/ ftp -d
> http://www.netbsd.org/index.html
> 
> and see what happens?
> 
> (I've been using Luke's ftp client to go through three separate different
> proxies at different employers over the years, and it's worked fine every
> time, modulo progress bars aren't available on ftp transfers going through
> some proxies.)
> 
> Regards,
> Alistair
> 
> --
> Alistair Crooks (agc@pkgsrc.org)
> 
> 
> 
> 
> 
> _______________________________________________________
> Say Bye to Slow Internet!
> http://www.home.com/xinbox/signup.html
> 
>