How to implement cookie support in ruby net/http?

后端 未结 6 1047
闹比i
闹比i 2020-12-07 10:43

I\'d like to add cookie support to a ruby class utilizing net/http to browse the web. Cookies have to be stored in a file to survive after the script has ended. Of course I

6条回答
  •  庸人自扰
    2020-12-07 11:02

    You can send receive cookies using headers.

    You can store the header in any persistence framework. Whether it is some sort of database, or files.

提交回复
热议问题