Title: Making an HTTP Post Request with data attached
Last modified: July 22, 2018

---

# Making an HTTP Post Request with data attached

 *  Resolved [Zambu](https://wordpress.org/support/users/thomasw98/)
 * (@thomasw98)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/making-an-http-post-request-with-data-attached/)
 * I was going to ask if this supports OAuth 2.0, but I searched this forum and 
   found a mention of this option in the translation section of the forum. So I 
   assume the answer is yes, but please confirm for me. Thanks.
 * Secondly, I want to send an HTTP Post Request with attached data to a google 
   api (e.g. [https://proximitybeacon.googleapis.com/v1beta1/](https://proximitybeacon.googleapis.com/v1beta1/){
   +beaconName}/attachments). Am I able to send the needed data along with the request?(
   Either free or pay version is ok).
 * The official Google description of this post process is:
 * “Attachment data must contain two parts:
    - A namespaced type.
    - The actual attachment data itself.
 *  The namespaced type consists of two parts, the namespace and the type. The namespace
   must be one of the values returned by the `namespaces` endpoint, while the type
   can be a string of any characters except for the forward slash (`/`) up to 100
   characters in length. Attachment data can be up to 1024 bytes long. Authenticate
   using an [OAuth access token]([https://developers.google.com/identity/protocols/OAuth2](https://developers.google.com/identity/protocols/OAuth2))
   from a signed-in user with **Is owner** or **Can edit** permissions in the Google
   Developers Console project.
    Request: POST [https://proximitybeacon.googleapis.com/v1beta1/](https://proximitybeacon.googleapis.com/v1beta1/){
   +beaconName}/attachments Mandatory HTTP Headers:”
 * Thirdly, can the plugin also handle PUT requests?
 * This plugin is a great idea and badly needed. Thanks for working on this!

Viewing 1 replies (of 1 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/making-an-http-post-request-with-data-attached/#post-10520618)
 * Hi,
 * neither the free version nor the pro-version supports OAuth 2.0 in the sense,
   that a double request has to be done. If the API supports a permanent token this
   can be used by the pro-version.
 * the pro-version can send a curl-reuest (post with data inthe header / body).
 * put: yet the pro-version can’t do that, but as curl-put this can be added (not
   added as there was no demand for that up to now).
 * Switch to
    [https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no](https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no)
   for further questions, as there is the pro-version support.

Viewing 1 replies (of 1 total)

The topic ‘Making an HTTP Post Request with data attached’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/making-an-http-post-request-with-data-attached/#post-10520618)
 * Status: resolved