Hi all,
I am posting some xml data to the rails server using curl. Now how do I
extract the posted xml data from the http request? I saw that one can access
the request parameters like params[:id] etc since params is a hash but I am
not sure how the xml data can be extracted (any key to use?).
Pasted below is the console log of the server...
Thanks,
Rajmohan
C:\InstantRails\rails_apps\sample>ruby script\server
=> Booting Mongrel (use ''script/server webrick'' to force
WEBrick)
=> Rails application starting on http://10.0.0.1:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 10.0.0.1:3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel available at 10.0.0.1:3000
** Use CTRL-C to stop.
Processing GreetingController#index (for 10.0.0.1 at 2007-06-28 15:52:30)
[POST]
Session ID: 6e614a5701545b4b876246dc292a4422
Parameters: {"<Data>\r\n <Man>Bif Factory,
Ltd.</Man>\r\n <mod>4119</Mod>\r\n
<Desc>Jane''s phones</Desc\r\n </Data>\r\n
\r\n",
"action"=>"index",
"controller"=>"greeting"}
Rendering greeting/index
Completed in 0.00010 (10000 reqs/sec) | Rendering: 0.00000 (0%) | 200 OK [
http://10.0.0.1/Greeting]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---