All Questions
5 questions
4
votes
2
answers
6k
views
How to send header and cookies with rest-client gem
In Code I am trying to send both the header and cookies in same request
below is the code
@result = RestClient.post(
'url',
{:billingSourceCode => "code"},
...
0
votes
1
answer
4k
views
Get and clear cookie using rest-client
I need to get cookie value stored when making a request below:-
http://www.google.com
and also clear the cookie and then create a cookie by making a new request
Example:-
I am making this request:-...
0
votes
1
answer
805
views
How to get cookie details of the request in ruby using rest client
If I am making this get request using rest-client gem
https://www.google.co.in/
I want get the following details:-
cookie
expire date
Also i want to remove the cookie(like we do clear cookies in ...
0
votes
1
answer
303
views
Rest client (Ruby) does not set the cookie when i try to upload a file
require 'rubygems'
require 'rest_client'
response = RestClient.post "URL",
"myfile" => File.new("/path/to/file"),
"Cookie" => "Name=...
0
votes
2
answers
5k
views
Ruby rest-client persisting cookies
I am using rest-client gem for communication between my CLI client and server. I am using cookies for persisting HTTP session.
@cookies = response.cookies
...
RestClient.post( :cookies => @...