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

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

android - How to prevent keyboard from closing when bottom dialog is open? -