# How to POST raw data?

**URL:** <https://www.ruby-forum.com/t/how-to-post-raw-data/53604>\
**Category:** Rails\
**Created:** [February 11, 2006, 5:57am UTC](https://www.ruby-forum.com/t/how-to-post-raw-data/53604 "2006-02-11T05:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f17d59/32.png) [@yash](https://www.ruby-forum.com/u/yash)\
**Post date:** [February 11, 2006, 5:57am UTC](https://www.ruby-forum.com/t/how-to-post-raw-data/53604/1 "2006-02-11T05:57:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f17d59/32.png) [@yash](https://www.ruby-forum.com/u/yash)\
**Post date:** [February 11, 2006, 6:20am UTC](https://www.ruby-forum.com/t/how-to-post-raw-data/53604/2 "2006-02-11T06:20:17Z")

</div>

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

[http://stdlib.rubyonrails.org/libdoc/net/http/rdoc/index.html](http://stdlib.rubyonrails.org/libdoc/net/http/rdoc/index.html)
