Menu

#8 Use HTTP PUT instead of POST in some cases

open
None
5
2006-07-29
2006-07-29
No

In a couple of cases we’re using a HTTP POST request
while we should really use PUT. This e.g. when updating
the contents of a post after editing it.

This is due to some limitations in both the YUI library
and PHP.

These limitations can be worked around, but that needs
to happen.

~Grauw

Discussion

  • Laurens Holst

    Laurens Holst - 2006-07-29

    Logged In: YES
    user_id=798154

    For PUT requests, the Resource class now manually fills in
    the $_POST array, so it is now available to the handler.

    What remains is to adapt the Yahoo UI Library part
    .

    ~Grauw

     
  • Laurens Holst

    Laurens Holst - 2006-07-30

    Logged In: YES
    user_id=798154

    The Yahoo UI library part is done as well.

    Now to identify the locations where PUT has to be used;

    - PUT /preferences

    What else?

    ~Grauw

     

Log in to post a comment.

MongoDB Logo MongoDB