I asked this in a comment to the accepted answer to this question, but perhaps since it was a comment on an old question, and perhaps because the answer is obvious to anyone who's sure of it, it got no response. But I just wanted to get sure... I see countless examples of code accessing google maps api through php curl, where this is specified:
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
And yet there is no CURLOPT_PROXY
specified or mentioned. To me, that makes no sense. So I think it's just a case where someone removed the proxy line from some sample code they had before posting it, and everyone else has blindly copy-pasted it into their code and then posted that code.
Can anyone confirm that? And if it's the case that the CURLOPT_PROXY
line was omitted, does anyone know the significance of port 3128? I don't see that port number mentioned anywhere else other than in similar code snippets using google maps.