Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to do a http PUT?

Is there a difference between http put and http post?

How to do a http PUT?

Thanks

— asked April 28th 2010 by Peter Lum
  • http
  • put
0 Comments

2 Answers

  • It all depends on the web application. If you have a RESTful web service it normally uses POST to create new records and PUT to update existing records. Regular web sites usually deal with only GET and POST HTTP methods.

    — answered April 28th 2010 by Kyle Quest
    permalink
    0 Comments
  • Does this make sense?

    var xhr = Titanium.Network.createHTTPClient();

    xhr.open("PUT",UA_URL + UA_Server + deviceToken);

    Is "PUT" in xhr.open valid?

    — answered April 29th 2010 by Peter Lum
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.