Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ciscoIpPhoneError = 6

I am trying to do a push of an xml on the ipphone and after I enter the valid username,password, I get this error.Could anybody describe this error number?

2 REPLIES
New Member

Re: ciscoIpPhoneError = 6

I had the same error trying to push XML to my IP Phone using c#. The error no. isn't in any doc, but wandering for forums I've found this is an internal error in receiving the POST.

My case was this : I was using the HttpWebRequest object in c# which sends an HTTP 100-Continue header to the IP Phone before sending the POST message (http://haacked.com/archive/2004/05/15/http-web-request-expect-100-continue.aspx).

I suppose that the IP Phone doesn't know how to handle this and answers with the ciscoIpPhoneError = 6.

I solved the issue using the MSXML object to send the same POST message :

byte[] bb = System.Text.ASCIIEncoding.UTF8.GetBytes("user" + ":" + "pwd");

MSXML2.XMLHTTPClass xmlhttp = new MSXML2.XMLHTTPClass();

xmlhttp.open("POST", "http://webserver/CGI/Execute", true, "", "");

xmlhttp.setRequestHeader("Authorization", "Basic " + Convert.ToBase64String(bb));

xmlhttp.setRequestHeader("Connection", "close");

xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

xmlhttp.send(Request);

I'm writing a more exhaustive article on this on http://snippets101.blogspot.com, where I'll attach also the sniffing sessions in this two cases.

HTH

Alberto

New Member

Re: ciscoIpPhoneError = 6

Have a look at

ServicePointManager.Expect100Continue = false;

This will fix the 100 Continue issue but I am not sure if it fixes the ciscoIpPhoneError = 6.

http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.expect100continue(VS.80).aspx

188
Views
0
Helpful
2
Replies