For a customer project, we needed to do a jSON query with PHP. So I searched the web for a tutorial how to do, but I’ve found much about the PHP jSON functions, but not much how to make requests to jSON interfaces with PHP. So I try to explain you how it works. Sending Data with PHP to a jSON Script with curl To get the data we use the PHP curl functions. In our example we have added a authentication with curl, if not needed, just leave the lines, commented with // authentication . [php] // jSON URL which should be requested $json_url = ‘http://www.mydomain.com/json_script.json’; $username = ‘your_username’; // authentication $password = ‘your_password’; // authentication // jSON String for request $json_string = ‘[your json string here]’; // Initializing curl $ch = curl_init( $json_url ); // Configuring curl options $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_USERPWD => $username . “:” . $pas...