From: Lee Jarvis Date: 2007-09-19T03:36:12+09:00 Subject: Cookies and sessions Ok guys, I need to build a script that connects to a websites, grabs and opens a link, parses the contents in that link and submit the findings in a form, I have most of it done, But the link for the file i need to parse is random and changes on every session so i always get an error when i am trying to open it.. It looks something like this: site = Net::HTTP.post_form(url, {'start' => '1'}) link = site.body.scan(/href="(.+?)">/) open(link) # it fails here, because its not the same session Any ideas? Sorry if i didn't explain myself very well tia -- Posted via http://www.ruby-forum.com/.