Changeset 3166487
- Timestamp:
- 10/10/2024 11:04:29 AM (18 months ago)
- Location:
- pcloud-wp-backup/trunk
- Files:
-
- 3 edited
-
Pcloud/Classes/class-wp2pcloudfilebackup.php (modified) (1 diff)
-
pcloud-wp-backup.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pcloud-wp-backup/trunk/Pcloud/Classes/class-wp2pcloudfilebackup.php
r3166447 r3166487 904 904 905 905 $args = array( 906 'method' => 'POST', 907 'timeout' => 60,906 'method' => 'POST', // Adjust as needed 907 'timeout' => 45, 908 908 'redirection' => 5, 909 // 'httpversion' => '1.0', 909 910 'blocking' => true, 910 'headers' => array(), 911 'body' => $content, 911 'headers' => array( 912 'Content-Type' => 'application/octet-stream', 913 'Content-Length' => strlen( $content ), 914 'Expect' => '', 915 ), 916 'body' => $content, // Ensure this matches the server's expected format 917 'cookies' => array(), 918 'sslverify' => false, 912 919 ); 913 914 $args_tmp = $args;915 $args_tmp['body'] = 'cdsacdsac';916 917 wp2pclouddebugger::log( 'write() - data sent: ' . http_build_query( $get_params ) . ' / ' . print_r( $args_tmp, true ) );918 920 919 921 $api_response = wp_remote_request( $this->apiep . '/upload_write?' . http_build_query( $get_params ), $args ); 920 922 if ( is_array( $api_response ) && ! is_wp_error( $api_response ) ) { 921 923 $response_body = wp_remote_retrieve_body( $api_response ); 924 922 925 $response_json = json_decode( $response_body, true ); 923 926 if ( ! is_bool( $response_json ) ) { -
pcloud-wp-backup/trunk/pcloud-wp-backup.php
r3166447 r3166487 10 10 * Summary: pCloud WP Backup plugin 11 11 * Description: pCloud WP Backup has been created to make instant backups of your blog and its data, regularly. 12 * Version: 2.0. 012 * Version: 2.0.1 13 13 * Requires PHP: 8.0 14 14 * Author: pCloud -
pcloud-wp-backup/trunk/readme.txt
r3166447 r3166487 5 5 Tested up to: 6.6.2 6 6 Requires PHP: 8.0 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv3 or later 9 9 … … 59 59 == Changelog == 60 60 61 = 2.0.1 = 62 * Hotfix for cURL http headers issue. 63 61 64 = 2.0.0 = 62 65 * Dropped support for PHP lower than 8.0.
Note: See TracChangeset
for help on using the changeset viewer.