Provide HttpHeaders (Authorization) for XMLPolyDataReader.setUrl()
See original GitHub issueHi,
I’m using XMLPolyDataReader to read a PolyData XML file from a API. That works fine when the API method is accessible without authorization. But we need to provide a access token for the API by setting the Authorization field in the HTTP header.
Is that possible?
At the moment I use the XmlPolyDataReader like this:
public addModelFromUrl(url: string) {
const reader = this.vtkXMLPolyDataReader.newInstance();
reader.setUrl(url).then(() => {
const modelPolyData = reader.getOutputData(0);
...
});
}
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Sending GET request with Authentication headers using ...
HttpHeaders headers = new HttpHeaders(); headers. ... getAuthorization() and then populating the header, with null checks as appropriate.
Read more >Using the Authorization Header (AWS Signature Version 4)
Using the HTTP Authorization header is the most common method of providing authentication information. Except for POST requests and requests that are signed ......
Read more >Authorization and HTTP Headers | Google Ads API
You need both OAuth 2.0 application credentials and a developer token when calling the Google Ads API. If you're making API calls as...
Read more >Basic Authentication with the RestTemplate - Baeldung
In this tutorial, we'll learn how to use Spring's RestTemplate to consume a RESTful Service secured with Basic Authentication.
Read more >HTTP headers and query string parameters for XML API
In response to a Cookie-based authentication request it provides you with a unique web origin response URL for the request. In response to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I solved the problem. Encoding of the Base64 was wrong. I used now ASCII Encoding and it works now 😊
That’s great, thank you!