Re: PHP cURL to achieve simulation login and collection method of use
when using cURL to do POST, when the POST's data is greater than 1024 bytes, cURL does not directly initiate a POST request, but it will be divided into two steps:
1. send a request, including a Expect:100-continue, inquiry Server is willing to accept data
2. after receiving the 100-continue response returned by Server, then the data POST to Server
:
[code] curl_setopt ($ch, > > > > >! Ass= "postlink" href= "https://github.com/Zjmainstay/php-curl/blob/master/demo/16_commonCurl/curlPage.php" >https://github.com/Zjmainstay/php-curl/... RlPage.php
simple parsing cURL command to PHP code program
>! /github/php-curl/demo/parseCurlGetPhpCode.php ">http://demo.zjmainstay.cn/php/github/ph... HpCode.php
PHP cURL is a very powerful collection tool, there are a lot of parameters in curl_setopt, the reader can take the whole time to see it, although it may not be used at ordinary times, but at least do it in mind." Have a bottom, know what parameters are available, and use them when necessary.
collection is a big project, and there will be a lot of problems in the process of using it, but as long as the analysis and data search are learned, everything will be solved. Ha ha ~ ~