I found an solution for this issue, i using wp_remote_post to send binary of file to server.
When processing data received on server, i use this code to get data of file
$file = file_get_contents('php://input');
And i write it to temp file
$temp = tmpfile();
fwrite($temp, $file);
$metadata = stream_get_meta_data($temp);
Do you have any other solution ? Please discuss with me to find best answers.
Related Posts:
- cURL RETURNTRANSFER function in wp_remote_post
- How to convert this cURL to wp_remote_*?
- Inconsistencies between wp_remote_post and cURL
- Does wp_remote_post() require curl?
- wp_remote_post vs curl to send data in WordPress plugin
- Is there a way to follow redirects with command line cURL?
- How to send a header using a HTTP request through a cURL call?
- How can I set the request header for curl?
- How to display request headers with command line curl
- How to fix libeay32.dll was not found error
- cURL to show response headers after submiting a file
- wget/curl large file from google drive
- curl: (35) SSL connect error
- How do I make curl ignore the proxy?
- SSL CA cert (path? access rights?)
- How do I measure request and response times at once using cURL?
- cURL equivalent in Node.js?
- Curl Error 56 “Failure when receiving data from the peer” while sending .tar.gz File
- Run Rsync from Python [duplicate]
- HTTP request on localhost failing
- wp_remote_get vs. file_get_contents vs. cURL?
- How can I use CURLOPT_USERPWD in wp_remote_post?
- wp_remote_get – cURL error 28 – only on same domain
- Retrieving Google Plus share count with wp_remote_post
- cURL – How to send and fetch data in WordPress
- On Plugin Activation, How Do I Check for Proper Transport Mechanism?
- Download file using cURL into wp-includes/uploads
- How to send a HTTP Post request using PHP Curl and WordPress
- cURL request to plugin repository fails 403
- Curl error while creating user
- Call external API in wordpress based on user input
- Set wordpress auth cookie from external site?
- Difference between `curl -I` and `curl -X HEAD`
- After upgrading WordPress, I am getting the following error. Error message: cURL error 52: Empty reply from server
- How do I get a YouTube video thumbnail from the YouTube API?
- How do I POST JSON data with cURL?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How do I POST JSON data with cURL?
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- How to define the basic HTTP authentication using cURL correctly?
- https connection using CURL from command line
- performing HTTP requests with cURL (using PROXY)
- Curl command for https ( SSL )
- How to do a PUT request with cURL?
- Using cURL with a username and password?
- PHP + curl, HTTP POST sample code?
- What is the curl error 52 “empty reply from server”?
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- curl: (6) Could not resolve host: google.com; Name or service not known
- How do I get a YouTube video thumbnail from the YouTube API?
- How do I POST JSON data with cURL?
- Binary Data Posting with curl
- curl : (1) Protocol https not supported or disabled in libcurl
- Why does cURL return error “(23) Failed writing body”?
- Can PHP cURL retrieve response headers AND body in a single request?
- How to POST JSON Data With PHP cURL?
- cURL request in Laravel
- curl: (60) Peer’s Certificate issuer is not recognized.
- Is it safe to use sslverify => true for with wp_remote_get/wp_remote_post
- How to use OAuth authentication with REST API via CURL commands?
- I found this in a plugin. What does it do? is it dangerous?
- Uploading media with the REST API
- Error timed out with succesfull wp_remote_post
- Wp_remote_post not posting data
- Difference between wp_remote_post and wp_safe_remote_post
- Re use authenticated HTTP connection or cUrl handle
- Log in from one wordpress website to another wordpress website
- Build dynamic page from cURL (HTML page) response with plugin
- wp_remote_post doesn’t work with more than 1024 bytes in the body
- Change the headers content type with wp_remote_post
- Stuck with wp_remote_post sending data to an external api on user registration
- Does wp_remote_post support asynchronous request?
- Login WordPress website using wp-rest api
- Post body not working with wp_remote_post()
- wp_remote_request header error even though working properly with cURL
- XML-code sent via the POST method to the URL (API) [closed]
- How can i get the post’s full html source by its ID?
- WP OAuth Server “The grant type was not specified in the request”
- WordPress from url get external source title
- curl problem or permalinks
- Using PODS data with save_post
- http_response_timeout filter not working
- Get single item from cURL plugin API call inside bash [closed]
- Uploading a media item with the wp-json API to a specific path
- Use WordPress user database in external php application
- Error: Can´t access facebook comment plugin admin page
- Limit the number of external API calls per second
- WP Refused to display ‘URL’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
- Installation failed: 504 – Gateway Timeout
- Installation problem with wordpress xampp
- Post to a server writen in Hapijs from wordpress using wp_remote_post
- Sending WordPress database information to cross domain the safe way?
- Run WordPress Plugin in the Specified time
- Get full page HTML for a non-public WordPress page
- How to use the HTTP API (wp_remote_get) instead of cURL?
- How to test a HTTPS URL with a given IP address
- Curl: disable certificate verification
- Send post to remote wp site from post edit window with all data excerpt image
- How can I run a second wp_remote_post() based on the response of the first?
- Trouble Sending Elementor Form Data via cURL in WordPress