Skip to content
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

send query with some headers #44

Open
ovodopyan opened this issue Dec 13, 2013 · 2 comments
Open

send query with some headers #44

ovodopyan opened this issue Dec 13, 2013 · 2 comments
Labels

Comments

@ovodopyan
Copy link

i'm work with some odata service without ssl etc, but must send queries with some http headers, it's imposible?

@ovodopyan ovodopyan reopened this Dec 13, 2013
@visoft
Copy link
Owner

visoft commented Dec 20, 2013

It should work if you pass in your headers to the options hash. It looks for a :rest_options key and merges that all together. Something like:

options = {}
options[:rest_options] = { :headers => { :client_version => 1 } }
OData::Service.new 'url', options

@visoft
Copy link
Owner

visoft commented Jan 1, 2014

@ovodopyan, were you able to solve your problem with my suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants