How use curl function in php -


here class function http post request:

protected function sendrequest($function, array $parameters) {     return $this->httpclient->post($this->getapiurl() . $function, [         'form_params' => $parameters,         'auth' => [$this->getapiusername(), $this->getapipassword()],         'verify' => false,     ]); } 

now want send http post request curl using above code. how do it, or how use above code <form method=post> html.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

ios - Chat Bubble in Swift3 -