# I need to be able to send simple "Cookie:" header with Net::

**URL:** <https://www.ruby-forum.com/t/i-need-to-be-able-to-send-simple-cookie-header-with-net/61826>\
**Category:** Ruby\
**Created:** [May 28, 2006, 10:18am UTC](https://www.ruby-forum.com/t/i-need-to-be-able-to-send-simple-cookie-header-with-net/61826 "2006-05-28T10:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [May 28, 2006, 10:18am UTC](https://www.ruby-forum.com/t/i-need-to-be-able-to-send-simple-cookie-header-with-net/61826/1 "2006-05-28T10:18:33Z")

</div>

Documentation I’ve been able to find is very unspecific about headers,  
which are  
apparently handled under the HTTP::Header class, right?

I’d like to be able to add any arbitrary HTTP header to my requests I am  
making  
with Net::HTTP.get\_response, but I cannot seem to make this work. There  
seem to be a  
complete set of methods here. Can someone point out to me how they  
work? Or even  
better a document that illustrates how to do these outgoing headers?

I basically need these in a test environment, and I need to send out a  
cookie that  
the SUT is presumed to have sent.

Sincerely, Xeno
