At 13:16 19/04/01 +0530, Kondal Rao wrote:
>Hi world,
> Thank you all for your responses. I could do some thing withe them.
> Here are
>my inferences
>
> 1. When i connect to google.com (not www.google.com) i get a 302
> redirection
>response.
> 2. If i connect to www.google.com then i'm not getting the 302 response.
> Why is it so? Here the 'gethostbyname' function returns same IP address,
>only the HOST field is changing
They probably have many servers and proxies.... so you shouldn't consider that
the name->addr relation is a simple one.
> I have one more question. How does a browser use the ftp connection.
> what are
>the requests and responses when i use a proxy. Because even for a ftp
>connection
>from the browser it uses the GET request, and when i connect to ftp server
>from
>my proxy and returning the '220 connected' back to the browser.
the browser uses http protocol to connect to the proxy, and the latter uses
ftp to
connect to the server. it knows it's ftp from the URL as it receives
something like:
GET ftp://ftp.site.example/purple/haze HTTP/1.0
> But the browser
>is not responding with the username and password. If i don't use the proxy
>it is
>connecting well and asking for the password.
by default, the browser sends "anonymous" (or another configurable name) as
the username
and email address as the password. it acts as if doing anonymous ftp.
if you want to ftp with your userid, use a URL like:
ftp:[EMAIL PROTECTED]/mydir/anotherone/file.txt
then you'll be prompted for a password.
you can pass the passwd directly using:
ftp://username:[EMAIL PROTECTED]/whatever/you/want
but you need to watch for bad guys behind the shoulders....
cheers,
mouss
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]