Add zip file to wp_remote_post
-
Hello. I have a plugin and send some data to external API. Early I used curl, but now I try to use HTTP API.
I have array:array( 'timeout' => 30, 'redirection' => 10, 'method' => 'POST', 'httpversion' => '1.1', 'headers' => array( 'Authorization' => 'Basic ' . $auth, 'Content-Type' => 'multipart/form-data', ), 'sslverify'=> true,
and need to add zip file from uploads directory and send to API. What should be the “body” for request?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add zip file to wp_remote_post’ is closed to new replies.