01-10-2008 10:58 AM - edited 03-15-2019 04:58 AM
I have got a couple of smalls apps in the works and thought they would be small little apps.
First I needed to do screenshots of the 7960 screen so that I can create some training documentation. So I created a simple asp file and installed it on my apache server. The file is as follows:
<html>
<body>
<%
Response.Write("AUTHORIZED")
%>
</body>
</html>
From IE I type http://10.248.140.35/CGI/Screenshot and I get a login box. I type in the credentials and I get the ol' PHone error 4.
In addition I removed the special Auth URL and verified I could log into the phone via CCMUser with the appropriate credentials after creating a device association. However, If I then try to access the Screenshot page I get the Phone Error 4 again. I sniffed the packets and this shows the interaction from the phone to the AuthServer page.
POST /asp/AlwaysAuth.aspx HTTP/1.1
Host: 10.248.140.32
User-Agent: Allegro-Software-WebClient/3.12
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 56
Accept: x-CiscoIPPhone/Text, x-CiscoIPPhone/Menu, x-CiscoIPPhone/IconMenu, x-CiscoIPPhone/Directory, x-CiscoIPPhone/Input, x-CiscoIPPhone/Image, x-CiscoIPPhone/GraphicMenu, x-CiscoIPPhone/Execute, x-CiscoIPPhone/Status, text/*
Accept-Language: en_US
Accept-Charset: iso-8859-1,utf-8;q=0.8
x-CiscoIPPhoneModelName: CP-7960G
x-CiscoIPPhoneSDKVersion: 4.0.1
x-CiscoIPPhoneDisplay: 133,65,2,G
UserID=admin&Password=admin&devicename=xxx
HTTP/1.1 200 OK
Date: Thu, 10 Jan 2008 18:49:44 GMT
Server: Apache/2.2.6 (Win32)
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Length: 44
Connection: close
Content-Type: text/html; charset=utf-8
<html>
<body>
AUTHORIZED
</body>
</html>
I am running CCM 5.1.1. Any thoughts
Solved! Go to Solution.
01-10-2008 04:28 PM
I think the elements are case-sensitive, so you need to have
...sometimes the errormessages don't point to the real problem... ;-)
01-10-2008 11:15 AM
Discovered part of my issue. Found that I was using .asp in the global auth url as opposed to .jsp.
dang linux
However, I still cannot push using IPPhoneExecute keeps saying Page Not Found????
My sniff looks like the following:
POST /CGI/Execute HTTP/1.1
Host: 10.248.140.35
Authorization: Basic ********************
Content-type: text/xml
Content-length: 108
User-Agent: Java/1.6.0_03
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
HTTP/1.1 404 Not Found
Content-Type: text/html
Transfer-Encoding: chunked
Server: Allegro-Software-RomPager/3.12
Connection: close
0d8
The requested URL '/CGI/Execute' was not found on the RomPager server.
Return to
0
01-10-2008 02:48 PM
have a look at this document;
hth
01-10-2008 04:28 PM
I think the elements are case-sensitive, so you need to have
...sometimes the errormessages don't point to the real problem... ;-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide