I am testing REST based request. Here is the snippet from the node http request sample.
var requestTxt = 'test';
var headers = {
'Content-Type': 'text/plain',
'Content-Length': requestTxt.length,
'Solace-Reply-Wait-Time-In-ms': 30000
}
reqOptions{
host: '10.28.112.100',
port: 9000,
path: '/tutorial/requests',
method: 'POST',
headers: headers
}
The above options and headers works for VMR with default VPN and username. Now I have a VPN setup with username. Anybody know how and where we can specify VPN and username info in an REST/HTTP request ?
I followed the javascript example and tried the keys below for REST request but no luck :
reqOptions{
host: '10.28.112.100',
port: 9000,
path: '/tutorial/requests',
method: 'POST',
headers: headers
vpnName: 'TEST_VPN_2',
username: 'user'
}