Forum Moderators: phranque

Message Too Old, No Replies

error reading the headers

         

carrera

9:23 am on Oct 16, 2005 (gmt 0)

10+ Year Member



Hi all,

I have a problem with my Cisco 7960 Phone. It sends a request with a wrong header to my apache server. Unfortunately I cant get the phone to send a correct header, so I want to tell my apache to ignore the wrong part instead of sending a "bad request" bessage. The problem is as follows:

Accept-Charset:
...
...
...
x-CiscoIPPhoneModelName: CP-7960
x-CiscoIPPhoneSDKVersion: 4.0.1
x-CiscoIPPhoneDisplay: 133,65,2,G

The hex-values between "Accept-Charset:" and "x-CiscoIPPhone..." are: 20 0a 01 01 02 0a 01 01 02 0a 01 01 01 0d 0a. I tried to replace it with mod_headers but this failed.

Does anybody know how I can ignore/replace the above bytes?

Regards,
Stefan

jdMorgan

6:11 pm on Oct 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



carrera,

Welcome to WebmasterWorld!

Apache mod_headers changes response headers sent by your server, not request headers sent by the client. If the client makes an invalid request, then the server will reject it before entering the API phase. So basically, the solution for this is probably going to involve contacting Cisco and getting a firmware patch.

Jim

carrera

5:32 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Hi,

thanks for the answer. Unfortunately you need a service-contract to ask Cisco for any patches. And Cisco recommends to use their CallManager with the IIS, probably IIS dont have problems with the incorrect requests. I've tested Jigsaw. It dont have any problems with this requests, but I want to the Apache server :-(

Regards,
Stefan

jdMorgan

6:07 pm on Oct 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, if you have the time and the inclination, download a copy of the Apache source, and patch the request header-handler so it won't reject those malformed headers. It's an open-source software project, so you can modify it if you need to.

Jim

carrera

6:32 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Sounds good. Can you give me a hint in which source-file this function is and what it is named to?