php - Set the content-type with wp_remote_post
Get the solution ↓↓↓Solution:
Check the documentation for which will give you some extra information on what you can do with the remote request.
When you make the request using that function, you can set headers in the second parameter ($args
) within an array. For example:
$args = array(
'headers' => array(
'content-type' => 'application/json'
),
);
$request = wp_remote_post( $url, $args );
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: your system folder path does not appear to be set correctly. please open the following file and correct this: index.php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.