UnityHTTP icon indicating copy to clipboard operation
UnityHTTP copied to clipboard

Single string value PUT/POST

Open takealuke opened this issue 9 years ago • 0 comments

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)

takealuke avatar Jul 13 '16 18:07 takealuke