title: How to send post to WordPress with REST API
body: <p>I have a Script that can send post to WordPress web site using REST API and now i need to send post with some more features first make post that have post type and second is call and set value to some custom fields</p>
  
  <p>here is my python code : </p>
  
  <pre><code>auth = 'Basic ' + str(base64.b64encode(b'jason:WdOb zgW5 Oq5I LhT3 9Gkw tiJg'), 'utf-8')
                  headers = {'Authorization': auth}
                  body = {'title': pointer , 'content': myresult_pointer[0] ,'categories':categories_id,'status':"publish",'comment_status':"open"}
                  r = requests.post('http://aaa.com/wp-json/wp/v2/posts', headers=headers, data=body)
  </code></pre>
  
  <p>and the url of the post type (bold part): </p>
  
  <p><a href="http://aaa.com/wp-admin/post-new.php" rel="nofollow noreferrer">http://aaa.com/wp-admin/post-new.php</a>?<strong>post_type=movies</strong></p>
  
  <p>another thing is when i run the code it return this : </p>
  
  <p><code>{'x-powered-by': 'PHP/7.2.22', 'content-type': 'application/json; charset=UTF-8', 'x-robots-tag': 'noindex', 'link': '&lt;http://aaa.com/wp-json/&gt;; rel="https://api.w.org/"', 'x-content-type-options': 'nosniff', 'access-control-expose-headers': 'X-WP-Total, X-WP-TotalPages', 'access-control-allow-headers': 'Authorization, Content-Type', 'content-length': '113', 'date': 'Fri, 25 Oct 2019 20:04:58 GMT', 'referrer-policy': 'no-referrer-when-downgrade', 'connection': 'close'}</code></p>