03-10-2008 01:32 PM - edited 03-13-2019 05:03 PM
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?
04-14-2008 09:23 AM
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
06-09-2008 05:05 PM
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
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: