We have a protocol that is polling a HTTP API. We keep getting the "308 Permanent Redirect" response status from the API. However, the API response would be fine when we use Postman from the DMA!
In addition, We get "Error : 12175. [ERROR_WINHTTP_SECURE_FAILURE]" if we switch to HTTPS! Which I think might be related to a certificate issue that we need to install on the DMA!
Could you advise on this issue and how we can around it?
When DataMiner picks up a response in the 3xx range, it should automatically resend the original request to the address that is specified in the Location response header. Tools like Postman might show similar behavior.
This behavior can be changed in DataMiner by using the customRedirect attribute on the Protocol.Type tag. By specifying that attribute, any 3xx response will be forwarded to the protocol and the redirect handling should be implemented there. Could it be that customRedirect is configured in your protocol?
Regarding the error code ERROR_WINHTTP_SECURE_FAILURE, the Microsoft documentation states the following:
One or more errors were found in the Secure Sockets Layer (SSL) certificate sent by the server.
There are a couple of different reasons of why this might occur:
- The webserver is using a version of TLS that is not enabled on the machine that is running DataMiner. Which OS is your server running?
- The server is offering a non-server certificate.
- The server certificate is signed by a weak signature.
- ...
By checking the TLS handshake with a packet sniffer (e.g. Wireshark), it might give you more information on where exactly it goes wrong.