Log In | Sign Up | Help
Upload_transparent

Active Resource -- Object-oriented REST services

Twitter Facebook
  • Send This
  • Add_to_favs_transparent
  • Embed
  • Download
  • Flag
  • Add to Favorites

Scribd requires Javascript. Please enable Javascript in your browser.

Value This
Doc
Scribd
Average
     
Pages: 5 43
Words: 1066 13640
Characters: 7429 81678
Lines: 16 623
     
     
Letters per word: 6.97 5.99
Words per line: 66.63 21.89
Words per page: 213.2 317.21

Document Information

6,999 Reads | 7 Likes | 1 Comment | 5 Favorites

Added By
Description

No description. Ask the publisher to add a description

Txt2_16x16 5 Pages


Date Added

03/06/2007

Category

Uncategorized.

Tags
Groups
Awards

Flame Hot

Copyright

Attribution Non-commercial

More info »

 

Comments

Login or Signup to Leave a Comment


lux55 8 months ago

This was quite helpful in developing a PHP-based client for a Rails-based REST service. One correction though:

When you make a POST or PUT request, the body should not be XML but rather application/x-www-form-ur lencoded encoded, for example:

obj[attr]=value&obj[a ttr2]=value2

It's only the replies from the server that are XML. This tripped me up a bit, since it was not clear in the core documentation either.

Also, my client library is available here:

http://code.google.com/p/phpactiveresource/

Hopefully that saves someone some time.

- Lux