Changeset 3233952
- Timestamp:
- 02/03/2025 12:40:34 PM (14 months ago)
- File:
-
- 1 edited
-
biblio-dispatch/trunk/bibliodispatch-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
biblio-dispatch/trunk/bibliodispatch-plugin.php
r3232753 r3233952 64 64 'secret_key' => $license_secret_key, // Your secret key for API authentication 65 65 'license_key' => $license_key, // The license key to check 66 // 'registered_domain' => LICENSE_SERVER_URL,67 66 'item_reference' => urlencode(BIBLIO_PLUGIN_ITEM_REFERENCE), 68 67 ); … … 71 70 $url = add_query_arg($api_params, LICENSE_SERVER_URL); 72 71 72 // Set headers to disable caching 73 $args = array( 74 'method' => 'POST', 75 'timeout' => 20, 76 'sslverify' => true, 77 'headers' => array( 78 'Cache-Control' => 'no-cache, no-store, must-revalidate', 79 'Pragma' => 'no-cache', 80 'Expires' => '0', 81 ), 82 ); 83 73 84 // Send query to the license manager server 74 $response = wp_remote_ get($url, array('timeout' => 20, 'sslverify' => true)); // Set sslverify to true for production85 $response = wp_remote_post($url, array('timeout' => 20, 'sslverify' => true)); // Set sslverify to true for production 75 86 // Check for errors in the response 76 87 if (is_wp_error($response)) {
Note: See TracChangeset
for help on using the changeset viewer.