ciscoIpPhoneError = 6

Unanswered Question
Mar 10th, 2008
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
agiaccone Mon, 04/14/2008 - 09:23
User Badges:
  • Bronze, 100 points or more

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

Actions

This Discussion