ar4iz
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Add zip file to wp_remote_postMust explain. Early with curl was:
$html_body_args[‘type’] = ‘ZIP’;
$html_body_args[‘invoiceFile’] = curl_file_create(WP_CONTENT_DIR . ‘/uploads/exported_html_files/’.$post_ids_str.’-html.zip’, ‘application/zip’, $post_ids_str.’-html.zip’);
$html_curl_args[CURLOPT_POSTFIELDS] = $html_body_args;
curl_setopt_array($html_curl, $html_curl_args);
and API gave a successful answer.
Now I rewrite code: ($html_curl_args it is array with header (code above in topic question) and with parameters in this code)
$html_curl_args[‘body’] = $html_body_args;
wp_remote_request( $html_url, $html_curl_args );
And API send me [body] => {“code”:400,”message”:”HTTP 400 Bad Request”}. Where is my mistake?Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?@catboulin For myself, I figured out this issue, if you have questions, I can help you
Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?@mohitmishra Thank you
Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?@mohitmishra If it possible, you can send URL for my email [email protected], or if you can send me part of code it will be great. Thank you
Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?@mohitmishra It is only theory. Can you give some sample or algorithm?
Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?Please, tell me which API can I use for Synced Data and for send request?
Forum: Plugins
In reply to: [WooCommerce] How to pay for a product on another site?@mohitmishra, Please, tell me which API can I use for Synced Data and for send request?
- This reply was modified 6 years, 3 months ago by ar4iz.