-
Notifications
You must be signed in to change notification settings - Fork 102
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
Headers and query params #23
Comments
If it is helpful, I was able to pass headers this way:
For query parameters I use |
Thanks for the hint! It could be done like this, but in my case I need to change them every time before a new request. So I solved this problem by creating ODataRequest instance for every request. But this is not an ideal solution. |
@StalkAlex, thanks for opening this. I think we can achieve this by adding a Can you give an example of the headers you're wanting to set? Just curious. |
@anderly currently I found way to get around this problem. Here's my way and example of the header $request = new ODataRequest('POST', $requestUrl, $this->client);
$request->addHeaders([
'Content-Type' => 'text/xml'
]);
$request->attachBody($fileContent);
$response = $request->execute(); |
So how do I add a custom parameter to query? For example I need: |
getting below error while query, can you help me with solution |
@manojiksula, that's unrelated to this package, but see here for how to resolve your certificate issue https://stackoverflow.com/a/31830614 |
How can I pass them? Could you show an example please?
The text was updated successfully, but these errors were encountered: