Hi, The http_header_pack in gwlib/http.c is called from within wap-appl.c among others. It will compact similar headers into the same line, seperating them by commas (,). It may be correct according to the RFC, but the fact remains that to save a few header bytes, you risk compatibility with servers who do not follow the RFC strictly.
Case in point: MSN's mobile site. Cookies do not work with it if packed. It is MSN's fault. Agreed. But the issue is that as a gateway we need to maximize compatibility, not conserve bandwidth. Bandwith savings in the case of Cookies, is just 6 bytes/cookie, while increasing processing load. MSN's site uses 3 cookies. If the site doesn't work with kannel, and works with another gateway, the client will simply use another gateway. This function is used by both sms and wap. I don't know how many sites have been refused or do not work right because of this. What is your oppinion to remove it altogether? BR, Nikos
