--fTXyRCv1KKF/vTw4fyN
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Thank you.  The following worked fine.

res Net::HTTP.get(URI.parse('http://www.4q.cc/index.php?pid¨Ęt&personą┐uck'))
puts res



On Sat, 2006-02-25 at 02:31 +0900, Adam Keys wrote:

> On Feb 23, 2006, at 5:13 PM, charlie bowman wrote:
> > I have a little snippet of code I wrote but it doesn't go to the  
> > correct
> > page.  The script pulls the data off of index.php but not
> > index.php?pid¨Ęt&personą┐uck.  What am I doing wrong?
> >
> > require 'net/http'
> > res  et::HTTP.post_form(URI.parse('http://www.4q.cc/index.php'),
> >                                   {'pid'fact', 'person'chuck'})
> > puts res.body
> 
> #post_form will put the parameters you pass in the request body.  If  
> your PHP script doesn't care about GET or POST, you could make the  
> request like any other GET, appending ?pid¨Ęt&personą┐uck to your  
> URL.
> 
> --
> ~akk
> http://therealadam.com
> 
> 
> 
> 

--fTXyRCv1KKF/vTw4fyN--