How To POST Data with PHP cURL | PHP cURL Tutorial

preview_player
Показать описание
In this video, you will be able to post data using curl in php. We will cover the basics of curl. cURL allows you to connect and communicate to many different types of servers

libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

we will learn how to POST data with PHP POST cURL requests.
The main thing is that the request must be a POST request with properly json-encoded data in the body. The headers must properly describe the post body.

Example : 00:19

curl_init — Initialize a cURL session
curl_setopt_array — Set multiple options for a cURL transfer
curl_setopt — Set an option for a cURL transfer
curl_exec — Perform a cURL session
curl_close — Close a cURL session

Link

Basic cURL Example | PHP cURL Tutorial

#curl #php #knowledgethrusters
Рекомендации по теме
Комментарии
Автор

I don't understand... Who are karl and eddie???

ElmoPlayss
Автор

How would a more complex array be submitted. Multidimensional array for example.

KarlBrouillette