-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get access to http client instance #383
Comments
OK this works: client.globals.headers({"Cookie" => "mycookie"}) if client is my Client instance. But documentation should be a little more detailed. |
i'm glad not sure what you mean by "block examples in the doc don't work!". savon 2.0 only remembers cookies from the last request. this is going to change with 2.1. |
Thanks for your answer. I couldn't find in the doc how to modify header of the request when an object is already created. What I want to achieve is to set headers once the client has been created. How do you make this? |
Oups, I'm pretty sure I stumbled upon the same issue than #363. I'm sending a session cookie (SESSIONID=somevalue) which is sometimes changing (only the value: |
for the request headers, i will think about introducing a local/request option. the global headers are used to retrieve the wsdl and for executing soap requests, so this needs to be defined as early as possible. if changing them through #363 is fixed is fixed on master, so please give it a try. the changes for 2.1 can be found in the changelog. |
unfortunately, v2.1.0 was delayed due to the rubygems outage, but it's released now. please give it a try. |
Hello,
I'm pretty new to Savon but even after reading thoroughly the documentation, I couldn't
get access to the http request after the client object has been created. It seems it was
possible in version 1 but not in version 2.
I need to modify the headers sent because I'm using the same client object for different
WS methods.
Also, block examples in the doc:
response = client.call(:authenticate) do
message username: "luke", password: "secret"
convert_request_keys_to :camelcase
end
don't work !
Is it a non-existing feature?
Also, is Savon managing the cookies automatically? I mean resending Cookies
is the server send back at Set-Cookie header?
Thanks for any help
The text was updated successfully, but these errors were encountered: