From: timsuth@... (Tim Sutherland) Date: 2002-03-02T12:27:37+09:00 Subject: Re: Net::HTTP and Cookies In article <98ba0902.0203011719.533be2ec@posting.google.com>, Hubert Hung-Hsien Chang wrote: >I don't think the Net::HTTP supports cookies. >Is there a quick way of making it happen? [...] Net::HTTP#get allows you to pass a hash of headers as its second argument. You can use this to set the 'Cookie' header. http.get('/foobar.html', { 'Cookie' => 'Version=1; Path=/; foobar=42' }) From Programming Ruby: aSession.get(path, headers=nil, dest="") ... If specified, the headers parameter is a Hash containing additional header names and values to be sent with the request. Also see RFC 2109.