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

Support alternate client object (ServerXMLHTTP) #429

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joyfullservice
Copy link

@joyfullservice joyfullservice commented Mar 19, 2020

This update adds support to optionally use ServerXMLHTTP in place of the standard WinHttpRequest object for Rest API calls.

As described more in issue #428, some API endpoints are very specific about the Content-Type header and will fail if the WinHttpRequest appends an encoding string to the Content-Type. Using the ServerXMLHTTP object allows us to bypass the issue and successfully post to the API endpoint without the Content-Type header being changed during the call. Closes #428

Adam added 2 commits March 19, 2020 15:14
This update adds support to optionally use ServerXMLHTTP in place of the standard WinHttpRequest object for Rest API calls.
If you don't specify the version number, it does not necessarily use the most current version. It may use 3.0 which does not have the same properties and methods and will cause errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call failing because "Charset=UTF-8" appended to Content-Type header
1 participant