How to add a new HTTP Header?

How to add a new HTTP Header? SearchSearch
Author Message
Socrates Bello
New member
Username: Socbello

Post Number: 1
Registered: 04-2007
Posted on Tuesday, April 03, 2007 - 04:20 pm:   

Hi, is there a way to add another HTTP header in the requests that are sent by the NOW.WAP gateway? Or change the X-Msisdn header in order to include msisdn: ?

I'm using NOW.WAP Proxy 2.52.

Thanks in advance.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7080
Registered: 10-2002
Posted on Wednesday, April 11, 2007 - 06:44 pm:   

Hi Socrates,

There is not a general way to insert a new header.

However, there is a way to change the "X-MSISDN:" header to use a different name. Or alternatively, you can define multiple headers that all contain the same MSISDN value ... which is sometimes necessary when you are supporting various application servers that have different expectations of the header name.

Edit the WAPGW.INI file, and under the [WAPGW] header, add:

MSISDNHeader=X-MSISDN,msisdn

This will cause the proxy to insert the following headers:

X-MSISDN: value
msisdn: value

Basically, this parameter setting can contain one or more values for the MSISDN header name, separated by a comma if multiple headers are desired.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7081
Registered: 10-2002
Posted on Wednesday, April 11, 2007 - 06:45 pm:   

P.S. - You might need to update from v2.52 for this particular setting.

I know that originally this "MSISDNHeader=" parameter setting only let you change "X-MSISDN:" to another header name. The support for a comma delimited list of multiple header names was added in a later version, but my available information does not indicate if this was before or after the v2.52 release.

You can download the latest trial version from the www.nowwap.com web site to update an existing installation (it will recognise an existing serial number).
Socrates Bello
New member
Username: Socbello

Post Number: 2
Registered: 04-2007
Posted on Wednesday, April 11, 2007 - 07:28 pm:   

Thanks for the info, this is what I need