Those with eagle eyes may have noticed that in the PHP code, the boundary string inside the Content-Type header was prefixed with two dashes (--).
Those dashes should have not been there. Removing them allows the request to work.
🤦♂️
Related Posts:
- How can I call specific function if requested URL is not found?
- WP-API v2 Custom Endpoint Response Formatting
- How to run multiple Async HTTP requests in WordPress?
- Creating a post with the REST API, curl and oauth returning 401 error
- Does the REST API (official) support custom post types?
- Unrendered content Cornerstone through REST API
- API JSON Data in WordPress
- How do I get URL from WP_HTTP object?
- Show different Customizer Settings on Page-Tamplates
- how to decode % in app [closed]
- Difference between ‘type’ => ‘text’ and WP_Customize_Control
- Shortcode API: How to get name that matched shortcode RegEx?
- woocommerce registration form with klaviyo(don’t work with current user)
- Change the CSS of the Customizer API
- Create a range slider to change font-size with different screens sizes in wordpress customizer api
- Fetch post block/field data as JSON with WordPress API
- Woocommerce api: create product with images – bad request
- How do I start using an external API and PHP for a WordPress.org page?
- Store a default value for a transient on plugin activation
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Fetching instagram api not working on wordpress
- Building a REST API for your web app exposes primary keys of DB records?
- How to set a template with wp_insert_post
- wp_remote_post empty $_POST
- Is it possible to create new user from external form using REST API?
- How to clone all WordPress Rest API end points
- Export post data with xml to other site using php soap
- Generate images with html2canvas and the woocommerce api
- Creating a brand attribute as a variable
- Create a WordPress Contact Form to call a POST AWS API Gateway and send user data
- How do i post data to url with fields?
- Trouble Accessing Gravity Forms API (GFAPI)
- wp_remote_request to url with port 8001 not woorking
- $_GET[‘title’] in WordPress
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Pulling Products from an API
- WP HTTP API call response
- AdWords API with WP
- Run A Pre-Built Core PHP Application Under A WordPress Page or Post Route
- Using the wp_remote_post response body
- base64_encode conflict with convert_smilies in wordpress
- get_body_params() is always empty in POST request
- Create custom API endpoint to change custom header image
- How to cut a section of a URL from a string with a regular expression?
- Adding Microsoft Teams Incoming Webhook to WordPress, Problem with Rest Route?
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- REST API Plugin Update call back not updating the plugin
- Display endpoint’s return into a file (file_put_contents())
- Read data from external source. XML vs REST API
- WordPress getting data from external API
- Can’t make an external api call in php side of wordpress child theme
- Custom Yoast Breadcrumbs URL
- Insert code when users come from an specific referer
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Add a Custom Class to Admin Menus
- Type hinting and void return question
- login wp impossible
- Replace comment avatars and links at the same time
- How to display recent posts on home page with custom HTML
- How do I add text in a shortcode?
- How to display php source code inside a post using visual editor?
- Stumped – Ajax Response Returns 0
- Upload Image in a WordPress page using PHP
- Get Custom URL For Custom Taxonomy
- Show full posts in archive
- I want to select the from values from database in WordPress? [closed]
- populate form fields in a loop with ajax
- Error in custom php function doesn’t exist
- Contact form won’t submit
- How to debug this search & replace strings snippet?
- Can’t retrieve element with WordPress default @fetch_rss();
- I have a snippet to redirect all users to a maintenance page. How do I exclude users with admin role?
- How to filter custom taxonomy term name, slug, and description?
- Call WC_Product get_price()?
- How to remove the space before the ellipsis in excerpt?
- Website completely messes up when logging out
- Unique PHP on each Page
- How do I include an external PHP file in a subdir WordPress install?
- Drupal is going Symfony. Would WordPress benefit from doing the same? [closed]
- HTML Form Question
- How to put the day of the function get_the_modified_date (‘l’, $post_id’) with the first capital letter?
- Restrict wordpress access to logged users only
- Set a cookie inside the 404.php theme page
- How best to check if a user is from China and hide content?
- Local WordPress from Git repo, where to set document root?
- Sort WooCommerce data with WP-CRON?
- Array sorting assistance
- Apply filters when loading post via ajax
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- Page downloads as file in Chrome
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- Gravity Forms – Prevent Multiple Form Entries Same User ID with Same Field Value
- Change background image based on tags
- How keep woocommerce users separeted in multisite install and keep admins on network
- How to show only part of product name in category page – WordPress with woocomerce
- How to crop featured image in different sizes?
- How to find out the URL of enabled theme(s)?
- Warning: Illegal string offset ‘post’ and ‘page’
- PHP $_SESSION array – only showing current index
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL