Re: PHP cURL to achieve simulation login and collection method of use
everyone knows that there is a wall of evil in our country, so if we need to get some data from the wall, we need to use the foreign proxy server; or when we need to collect a lot of data, we need to switch to IP constantly, and also use reason.
use a proxy in PHP cURL to have several corresponding parameters: CURLOPT_PROXY, CURLOPT_PROXYPORT and CURLOPT_PROXYUSERPWD, and there are several other, not enumerated here.
CURLOPT_PROXY specifies the proxy IP parameter
CURLOPT_PROXYPORT specifying the proxy port parameter
CURLOPT_PROXYUSERPWD to specify the account password of the agent to be verified,