Changeset 3233954
- Timestamp:
- 02/03/2025 12:41:16 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
biblio-dispatch/tags/1.2.3/bibliodispatch-plugin.php
r3232804 r3233954 71 71 $url = add_query_arg($api_params, LICENSE_SERVER_URL); 72 72 73 // Set headers to disable caching 74 $args = array( 75 'method' => 'POST', 76 'timeout' => 20, 77 'sslverify' => true, 78 'headers' => array( 79 'Cache-Control' => 'no-cache, no-store, must-revalidate', 80 'Pragma' => 'no-cache', 81 'Expires' => '0', 82 ), 83 ); 84 73 85 // Send query to the license manager server 74 $response = wp_remote_ get($url, array('timeout' => 20, 'sslverify' => true)); // Set sslverify to true for production86 $response = wp_remote_post($url, array('timeout' => 20, 'sslverify' => true)); // Set sslverify to true for production 75 87 // Check for errors in the response 76 88 if (is_wp_error($response)) {
Note: See TracChangeset
for help on using the changeset viewer.