ruby - how to pass cookies to another Savon client -


I have two savings clients, where another requires a cookie, such as earlier cookies. I have something like that but the other client's call fails with a 302 error, probably because the cookie is not correct or not set ...

  client1 = Savon.client (wsdl: "Http: //example.com/Service1.asmx?WSDL") response1 = client1.call (: authenticate_user, login = & gt; login, passwd = & gt; password) response1_cookies = response1.http.cookies client2 = Savannah Client (wsdl: "https://example.com/Service2.asmx?WSDL") response2 = client2.call (: get_user_info, cookies: response1_cookies)  

How to get me any ideas Should this work get?

  • Savan gem version 2.6.0
  • httpi gem version 2.2.4

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -