Single string value PUT/POST #64

Open
opened 2016-07-13 11:51:47 -07:00 by takealuke · 0 comments
takealuke commented 2016-07-13 11:51:47 -07:00 (Migrated from github.com)

Is there any way to make a "PUT" request with a single string value? I'm using this library to make REST calls to Firebase -- their "PUT" allows (and often requires) writing to an "end node" with a single value (so as not to override data) -- I basically want to do:

curl -X PUT -d '"June 23, 1912"' \
  'https://docs-examples.firebaseio.com/rest/saving-data/fireblog/users/alanisawesome/birthday.json'

As is described in this documentation. (look at the "PUT" section)

I basically want to be able to do something like:

UnityHTTP.Request req = new UnityHTTP.Request ("put",
            getDBUrl("/users/" + uid + "/assessments/" + aid), true);

Notice the bool instead of a HashTable (this could just be a string)

Is there any way to make a "PUT" request with a single string value? I'm using this library to make REST calls to Firebase -- their "PUT" allows (and often requires) writing to an "end node" with a single value (so as not to override data) -- I basically want to do: ``` curl -X PUT -d '"June 23, 1912"' \ 'https://docs-examples.firebaseio.com/rest/saving-data/fireblog/users/alanisawesome/birthday.json' ``` As is described in this [documentation](https://firebase.google.com/docs/database/rest/save-data). (look at the "PUT" section) I basically want to be able to do something like: ``` UnityHTTP.Request req = new UnityHTTP.Request ("put", getDBUrl("/users/" + uid + "/assessments/" + aid), true); ``` Notice the bool instead of a HashTable (this could just be a string)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
andyburke/UnityHTTP#64
No description provided.