# Post data

**URL:** <https://www.ruby-forum.com/t/post-data/114561>\
**Category:** Ruby\
**Created:** [September 15, 2007, 11:16am UTC](https://www.ruby-forum.com/t/post-data/114561 "2007-09-15T11:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarvo88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a8b319/32.png) [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Post date:** [September 15, 2007, 11:16am UTC](https://www.ruby-forum.com/t/post-data/114561/1 "2007-09-15T11:16:28Z")

</div>

Ok guys lets say i have a form like this in a webpage

Is there any way to send post data and then grab the source of  
nextpage.php? Could anyone give me a small example of how to do it? I  
can’t seem to work it out.

tia

---

<div class="post-metadata">

**Author:** ![jarvo88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a8b319/32.png) [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Post date:** [September 15, 2007, 11:49am UTC](https://www.ruby-forum.com/t/post-data/114561/2 "2007-09-15T11:49:44Z")

</div>

Lee J. wrote:

> Ok guys lets say i have a form like this in a webpage
> 
> Is there any way to send post data and then grab the source of  
> nextpage.php? Could anyone give me a small example of how to do it? I  
> can’t seem to work it out.
> 
> tia

Nevermind… I have

Net::HTTP.post\_form

thanks anyway
