Unable to get Authorization working for Screenshot or Execute

Answered Question
Jan 10th, 2008
User Badges:

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

Correct Answer by Sascha Monteiro about 9 years 3 months ago

I think the elements are case-sensitive, so you need to have


...sometimes the errormessages don't point to the real problem... ;-)

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
markoller Thu, 01/10/2008 - 11:15
User Badges:

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



Object Not Found




Object Not Found

The requested URL '/CGI/Execute' was not found on the RomPager server.


Return to






0


Correct Answer
Sascha Monteiro Thu, 01/10/2008 - 16:28
User Badges:
  • Silver, 250 points or more

I think the elements are case-sensitive, so you need to have


...sometimes the errormessages don't point to the real problem... ;-)

Actions

This Discussion