1

This is just pure ruby not rail.

I'm trying to code an auto login form to change some configurations of my web hosting panel. There are two and more cookies returned.

I wish to get ruby version of this post How to handle multiple Set-Cookie header in HTTP response

open-uri also takes the last set-cookie header.

h1 = open("http://www.w3.org/") h1.meta['set-cookie']

Community
  • 1
  • 1
jack
  • 1,415
  • 4
  • 15
  • 22

1 Answers1

0

get_fields() solves this problem.

ndnenkov
  • 35,425
  • 9
  • 72
  • 104
jack
  • 1,415
  • 4
  • 15
  • 22