# HTTPCookieProcessor in ruby

**URL:** <https://www.ruby-forum.com/t/httpcookieprocessor-in-ruby/177327>\
**Category:** Ruby\
**Created:** [October 15, 2009, 2:46am UTC](https://www.ruby-forum.com/t/httpcookieprocessor-in-ruby/177327 "2009-10-15T02:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannypotta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dannypotta](https://www.ruby-forum.com/u/dannypotta)\
**Post date:** [October 15, 2009, 2:46am UTC](https://www.ruby-forum.com/t/httpcookieprocessor-in-ruby/177327/1 "2009-10-15T02:46:57Z")

</div>

im a python developer, and i am starting learn ruby porting an previous  
program i did, to interact with my ruby on rails application, but i  
don’t know how to develop this kind of behavior on ruby

self.o = urllib.request.build\_opener(  
urllib.request.HTTPCookieProcessor() )  
urllib.request.install\_opener( self.o )  
p = urllib.parse.urlencode( { ‘email’: email, ‘password’: pw } )  
f = self.o.open( site, p )

with self.o.open(site\_link) as fd:  
body = fd.read().decode(“utf8”)

any help?
