SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what is the difference among POST and PUT?

    there is a html method called PUT. I use a lot of POST and GET method to retrieve data, but how bout PUT?
    Last edited by janetsmith; Nov 11, 2006 at 08:16.

  2. #2
    SitePoint Enthusiast chovy's Avatar
    Join Date
    Sep 2006
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    where did you read about PUT?

    I'm thinking PUT is defined in a newer doctype schema....as an alternate to POST.

  3. #3
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    chovy, i read it when browsing the Firefox code.

    earl-grey, thanks for the upload.thinfile.com link. atleast it points out some difference.

  5. #5
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    Grand Junction, CO
    Posts
    292
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    POST is used to create new resources, and PUT is used to update existing resources. However, modern browsers don't implement PUT (despite the fact that it's defined in the HTTP standard) so it's moot. Still, it is a good idea to write your apps with that in mind, so that eventually when browsers do make full use of the standard you won't have to make changes.

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by pergesu
    Still, it is a good idea to write your apps with that in mind, so that eventually when browsers do make full use of the standard you won't have to make changes.
    HTTP and 2006, meet XHTML and 2001

  7. #7
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    Grand Junction, CO
    Posts
    292
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    HTTP and 2006, meet XHTML and 2001
    Okay, actually I just want him to go, "Man this HTTP PUT stuff is weird...screw it, I'm not doing it. Oh wait, if I use Rails I can code like I'm using PUT, and then I won't have to do any work when it actually happens."

    Sometimes you gotta be subversive to get them to drink the kool-aid


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •