How to POST raw data?

Hi,

I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.

Can you help me with this?

Thanks,
Yash

Look into the Net:HTTP standard library documentation, found here:

http://stdlib.rubyonrails.org/libdoc/net/http/rdoc/index.html