google maps - Why do people use CURLOPT_PROXYPORT 3128 without CURLOPT_PROXY? -
i asked in comment accepted answer this question, perhaps since comment on old question, , perhaps because answer obvious who's sure of it, got no response. wanted sure... see countless examples of code accessing google maps api through php curl, specified:
curl_setopt($ch, curlopt_proxyport, 3128);
and yet there no curlopt_proxy
specified or mentioned. me, makes no sense. think it's case removed proxy line sample code had before posting it, , else has blindly copy-pasted code , posted code.
can confirm that? , if it's case curlopt_proxy
line omitted, know significance of port 3128? don't see port number mentioned anywhere else other in similar code snippets using google maps.
port 3128 used 'squid', popular web proxy server able proxy other protocols (e.g. ftp).
according wikipedia, squid:
has wide variety of uses, speeding web server caching repeated requests; caching web, dns , other computer network lookups group of people sharing network resources; aiding security filtering traffic.
so seems isn't arbitrary port number.
in future, can link specific answer clicking "share" under answer , copying link. example, link answer referring https://stackoverflow.com/a/11395547/4241842.
Comments
Post a Comment