Adding Headers to smpp client before bind
Posted: Wed Feb 08, 2023 11:22 am
Hello, I am looking for a way to add headers to smpp client before bind.
I have this code snippet to show what I am trying to achieve
using Inetlab.SMPP;
using Inetlab.SMPP.Common;
using System.Collections.Generic;
// Connect to the SMPP server
var client = new SmppClient();
client.Connect("serverAddress", portNumber);
// Create a dictionary of headers
var headers = new Dictionary<string, string>
{
{ "headerKey", "headerValue" }
};
// Create a Bind request
var request = new Bind();
// Set the OptionalParams property to the headers dictionary
request.OptionalParams = headers;
// Set the systemId and password
request.SystemId = "systemId";
request.Password = "password";
// Bind to the SMPP server
var response = client.Bind(request);
This is currently not possible, please advise
I have this code snippet to show what I am trying to achieve
using Inetlab.SMPP;
using Inetlab.SMPP.Common;
using System.Collections.Generic;
// Connect to the SMPP server
var client = new SmppClient();
client.Connect("serverAddress", portNumber);
// Create a dictionary of headers
var headers = new Dictionary<string, string>
{
{ "headerKey", "headerValue" }
};
// Create a Bind request
var request = new Bind();
// Set the OptionalParams property to the headers dictionary
request.OptionalParams = headers;
// Set the systemId and password
request.SystemId = "systemId";
request.Password = "password";
// Bind to the SMPP server
var response = client.Bind(request);
This is currently not possible, please advise