[Rails] Re: Restful_authentication as a web service?

2009-08-20 Thread Martin Dinstuhl
Larry, Thank you SO much for answering my question. If anyone is wondering, THIS WORKED. Have a good one! Martin Dinstuhl On Wed, Aug 19, 2009 at 3:00 AM, hitch wrote: > > The format is determined by the HTTP Accept header, and not by adding > an extension on the URL. > So, your url remains

[Rails] Re: Restful_authentication as a web service?

2009-08-19 Thread Robert Walker
hitch wrote: > The format is determined by the HTTP Accept header, and not by adding > an extension on the URL. > So, your url remains /sessions/create and not /sessions/create.xml Wait a moment. The URI is actually /sessions not /sessions/create. The HTTP verb is used to select the create meth

[Rails] Re: Restful_authentication as a web service?

2009-08-19 Thread Mukund
You can use the RestfulClient gem to test it out instead of CURL. On Aug 19, 1:00 pm, hitch wrote: > The format is determined by the HTTP Accept header, and not by adding > an extension on the URL. > So, your url remains  /sessions/create and not /sessions/create.xml > > You can test this out by

[Rails] Re: Restful_authentication as a web service?

2009-08-19 Thread hitch
The format is determined by the HTTP Accept header, and not by adding an extension on the URL. So, your url remains /sessions/create and not /sessions/create.xml You can test this out by using a command line tool like curl. For example: curl -H "Accept: application/xml" "http://localhost:3000/s