Posts by Danizord • 151 points
1 post
-
5
votes2
answers29844
viewsA: How to submit a POST request to a REST API in PHP?
There are several ways to do this with PHP, the most common way is by using the Curl library: $url = 'http://server.com'; $data = ['key' => 'value']; $ch = curl_init(); curl_setopt($ch,…