[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Follow-up, Re: Can anybody make any sense out of this? (it involves lack of DNS)
Hello James,
> But that raises another question: How does HTTPS fit into this?
>
> There's no port number specified in the requests: it's just
> > https://www.google.com/calendar/feeds/default/private/full?alt=jsonc
> (followed by any additional query parameters, delimited by ampersands)
Are we still talking about proxies? I'm struggling to understand where
you're going with this question.
When HTTPAPI (or any other HTTP tool, for that matter) connects via a
proxy, then there's two connections happening. One connection is from
HTTPAPI to the proxy. A second, separate, connection is made from the
proxy to the www.Google.com.
That's why (as discussed in the prior conversation) HTTPAPI doesn't need
to be able to look up the address for www.google.com -- it never
connects to it. HTTPAPI connects to the proxy, and sends the URL to the
proxy. The proxy does the DNS lookup for www.google.com, and connects
to it.
Same is true of the port. HTTPAPI connects to the proxy on the "proxy
port" (the port number you specify on the setProxy call). The proxy
will connect to the destination server on the http or https port as a
separate connection. So in a proxy situation, it doesn't matter to
HTTPAPI which port you specify -- httpapi doesn't make a connection to
that port. It just connects to the proxy port. It's the proxy's job to
connect to the port in your URL.
When no port number is given in a URL, then it uses the default port for
the service (http: or https: in this example) that you've specified. so
if your url begins with https: and you do not specify a port number, the
proxy would connect to port 443, because that's the default port for https.
-SK
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------