On Tuesday, August 12, 2014 9:36:59 PM UTC+1, Ruby-Forum.com User wrote:
>
> #the second post (below) will fail because of the missing cookie 
> variable 
> restexec_adduser= 
> RestClient.post(url_adduser,payload_adduser,initheader_add_user) 
>
> END CODE 
> ============== 
>
> How can I pass the cookie in the second post method? 
>
>  
You need to set a header of the form

    Cookie: cookie_name=cookie_value; other_cookie_name=cookie_value

if your name/value have special characters in them you'll need to quote 
them.

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/6a5ef3bb-852d-4f48-b91c-09eff1115846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to