MavEtJu's Distorted View of the World - 2006-05Back to index My current locationPosted on 2006-05-31 10:34:36, modified on 2006-05-31 10:36:13 In the living room in our appartment, according to my mobile phone, I'm in Kurnell. In the study in our appartment, according to my mobile phone, I'm in Dolans Bay. And when I'm standing in front of the apparment, according to my mobile phone, I'm in Cronulla. This house is of all places! No comments | Share on Facebook | Share on Twitter Cisco 7970 HTTP client codePosted on 2006-05-17 15:45:37, modified on 2006-05-17 15:54:45 The Cisco 7970 phones have a nifty feature: IP Phone Services. With it, you can access services on the internet (for example the stock value of CSCO). I have been asked to make some nifty features, but the phone has some funky HTTP client code. This is how our services are configured in the Cisco Call Manager Service URL: http://xml.barnet.com.au/echo.xml And this it the HTTP request the phone sends GET /echo.xml?demo=text HTTP/1.1. Host: 202.83.176.80:80. Connection: close. User-Agent: Allegro-Software-WebClient/4.20. Accept: x-CiscoIPPhone/*;version=3.0, text/*,image/png,*/*. Accept-Language: en. Accept-Charset: iso-8859-1. Cookie: ASPSESSIONIDQQSCDATD=IIHNKHFBLCNEAGLMFDIEEIGN. So despite that the service has the full hostname, the Host line in the HTTP request contains an IP address. It's HTTP/1.1, so the Host line is required. RFC2616 says this about it:
Reading this, it looks like the IP address isn't even allowed there. But it should have been xml.barnet.com.au. No comments | Share on Facebook | Share on Twitter |