You should be able to use both wp_remote_request()
and wp_remote_post()
for a ‘POST’ request, as they are just wrappers for the same WP_Http::request
method that supports the methods:
'GET', 'POST', 'HEAD', 'PUT',
'DELETE', 'TRACE', 'OPTIONS', 'PATCH'.
and the default one is ‘GET’.
The difference is that wp_remote_post()
function has the ‘POST’ method explicitly set via WP_Http::post
that’s also a wrapper for WP_Http::request
.
Related Posts:
- Wp_remote_post not posting data
- wp_remote_post doesn’t work with more than 1024 bytes in the body
- Does wp_remote_post support asynchronous request?
- Remote login with only the username not working
- wp_remote_request header error even though working properly with cURL
- http_response_timeout filter not working
- wp_remote_post code conversion
- wp_remote_post rabobank omnikassa (version2) – error 5001
- Post to a server writen in Hapijs from wordpress using wp_remote_post
- wp_remote_post() and Pem certificates
- Is it safe to use sslverify => true for with wp_remote_get/wp_remote_post
- Sending JSON string through wp_remote_post()
- How to use the HTTP API with a Proxy?
- How to add Request header in WordPress remote api calls
- Error timed out with succesfull wp_remote_post
- Send data to 3rd party api with wp_remote_post on wp_login
- Difference between wp_remote_post and wp_safe_remote_post
- Custom routes for custom post type?
- Log in from one wordpress website to another wordpress website
- WP_Http_Cookie destroys cookie value through urldecode()
- HTTP request on localhost failing
- Facebook OAuth, WP_Http::request() vs wp_remote_request()
- How can I use CURLOPT_USERPWD in wp_remote_post?
- Is curl required?
- Change the headers content type with wp_remote_post
- Stuck with wp_remote_post sending data to an external api on user registration
- Retrieving Google Plus share count with wp_remote_post
- How to set charset for wp_remote_post request?
- API getting null values with wp_remote_post
- Proxy not working with Requests::request_multiple()?
- Post body not working with wp_remote_post()
- is_admin() returns false in save_post hook with Gutenberg editor
- On Plugin Activation, How Do I Check for Proper Transport Mechanism?
- creating form for wp_remote_post
- Using wp-cron in backpress – problems with wp_remote_post, fsockopen error
- WP_REMOTE_POST Requests are being blocked by API provider [closed]
- How to run a function on plugin’s options page?
- how to remotely check a username / password from within a plugin
- What would be the best way to implement Magic Link logins in WordPress?
- cURL RETURNTRANSFER function in wp_remote_post
- How to create custom post by using REST API securely?
- how to avoid timeouts with remote API requests?
- Sending post request with wp_remote_post not working correctly
- How to convert this cURL to wp_remote_*?
- wp_remote_post – handling responses
- How to send file by wp_remote_post?
- wp cron job fires at every second or so, if callback is wrapped with DOING_CRON check it never fires at all
- Publish page remotely
- How can I call specific function if requested URL is not found?
- How to code auto-retry for API call
- wp_remote_post sends empty body
- wp_remote_post empty $_POST
- How to send the body in wp_remote_post as “raw”?
- Generate new post from email
- How to send a HTTP Post request using PHP Curl and WordPress
- wp_remote instead of file_get_contents on non json
- Wp Remote get with manual redirect
- Post content in wp_remote_post
- Limit the number of external API calls per second
- Can I call a functions.php file from a different URL?
- Problems getting values from response from wp_remote_post
- Cron and request with wp_remote_post
- Using webhook sending message to telegram from wordpress?
- wp_remote_post not working with admin-post.php
- Inconsistencies between wp_remote_post and cURL
- wp_remote_request to url with port 8001 not woorking
- Send POST request to Flask app from functions.php file
- wp_remote_post To external API multiple values with the same key
- Install plugin on remote wordpress
- view counter update in WordPress REST api HTTP get
- How to debug new shortcode? And how to get string from shortcode into code?
- Does wp_remote_post() require curl?
- wp_remote_post and form post
- WordPress wp_remote_post() sending informaiton to Redmine REST API
- Submit form stored in one plugin from another plugin?
- saving file to external server vip
- How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?
- Webhook: save_post action fires wp_remote_post twice
- Why is this specific API request failing when sending via wp_remote_post?
- Send PUT remote request with BuddyPress checkbox
- wp_remote_post vs curl to send data in WordPress plugin
- upload image with rest API to the media library