Closed mean-cj closed 2 years ago
Hi nada
When we need to call $curl->get() after $curl->post() , curl option "CURLOPT_CUSTOMREQUEST" doesn't work because curl option remember CURLOPT_CUSTOMREQUEST = POST
fixed add $this->setOpt(CURLOPT_CUSTOMREQUEST, "GET"); into the get method.
When you change the request method by setting CURLOPT_CUSTOMREQUEST to something, you do not actually change how libcurl behaves or acts in regards to the particular request method, it will only change the actual string sent in the request.
Hi @mean-cj
Whats to benefit of introducing this? What does it change? Could you please elaborate?