cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
366
Views
0
Helpful
5
Replies

HTTP headers

webmailmaster
Level 1
Level 1

Hello everybody,

I noticed that the when I set HTTP headers, such as "Refresh" they work on IP Communicator, but not on real phone - though they both are connected to the same CM and run the same service. What can the problem be? The real phone model is 7960.

Hope to get a reply soon,

Best regards,

Victor

5 Replies 5

phoneapps
Level 1
Level 1

Hi Victor

They should work just fine for use with 7960's we use refresh in our product and it works fine.

How are you setting it - it needs to be a custom header - we use the following in our implementation language:

Response.setCustomHeader('Refresh', refreshStr)

where refreshStr may be:

'5; url=http://localhost/ciplet/ciplets.dll/SomeObject'

Hope this helps

Paul

www.ciplets.com

Hi Paul,

Thank you for your reply!

I'm using ASP JScript, and Response.AddHeader to add headers, and there is no such thing as Response.setCustomHeader in ASP. Any more ideas?

Cheers,

Victor

Hi Victor

Can you post an example of how you're setting a Response page that includes the Refresh header that is not working?

Paul

www.ciplets.com

Hi Paul,

here's the code:

<%

if (...)

{

Response.ContentType="text/xml";

Response.AddHeader("Expires", "-1");

Response.AddHeader("Refresh", "5");

%>

...

<%

}else{

Response.ContentType="text/xml";

Response.AddHeader("Expires", "-1");

Response.AddHeader("Refresh", "5");

%>

...

<%

};

I tried to use Response.AddHeader("Refresh", "5; url=http://server/script.asp"); but it won't work either(though works fine in web browser, IP Communicator and Phone Services Emulator.

Could the problem be with the phone load? Call Manager version is 3.3(4)

Best regards,

Victor

Victor

That's a strange one - the Response.Addheader("Refresh","5; url=http://server/script.asp");

should definitely work.

The expires header is a standard header, you can just do:

Response.Expires = -1;

I only have access to a CallManager version 4 at the moment but I'm 99% sure this worked no problem with 3.3. I'll try your script shortly and see whether it works here.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: