I'm trying yo pass Pass Custom Http Headers to Rest API thru voice xml as below. But im getting error because the http headers
are not passed to the api correctly. But it's working as expected in Plumfuse. Please guide me how can i pass Custom Http Headers to Rest API
using below code.
HTTP/1.1 401 Unauthorized - https://test.abc.com/v1/Session
DocumentParser::FetchBuffer - could not open URL: https://test.abc.com/v1/Session
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri https://test.abc.com/v1/Session
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
<subdialog name="result" method="post" fetchtimeout="10s" src="https://test.abc.com/v1/Session">
<param name="Key" expr="'1234GY7890'"/>
<param name="Device" expr="'testdevice'"/>
<param name="Content-Length" expr="'0'"/>
<filled>
Your session is <value expr="result"/>.
</filled>
</subdialog>
</form>
</vxml>