... | ... | @@ -11,7 +11,7 @@ response = http.get(response.headers["location"]) => Sends the cookie informatio |
|
|
This plugin also works seamlessly with the `follow_redirects` plugin, in the redirections setting a session cookie will be respected:
|
|
|
|
|
|
```ruby
|
|
|
http = HTTPX.plugin(:cookies, :follow_redirects)
|
|
|
http = HTTPX.plugin(:cookies).plugin(:follow_redirects)
|
|
|
response = http.get("https://example.com/setscookies") #=> will redirect to "https://example.com/another" with cookies
|
|
|
```
|
|
|
|
... | ... | |