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: {“\r\n Bif Factory,
Ltd.\r\n 4119\r\n
Jane’s phones</Desc\r\n \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]