Last post Feb 07, 2010 10:59 AM by jmarkee
Feb 06, 2010 05:10 PM|jmarkee|LINK
The iPhone sends an HTTP GET request to my web application to recieve an update for an internet calendar. The iPhone does not conform to the RFC 822 Date Format for this request. It sends the If-Modified-Since as follows:
RFC 822 format - Sun, 06 Nov 1994 08:49:37 GMT
iPhone Format - Sun, 6 Nov 1994 08:49:37 GMT
I dont know much about handlers or modules. Is it possible to write a handler or module that could intercept this request and reformat the If-Modified-Since date format to the standard. Currently when IIS recieves this request it immediately sends back
a 400 Error because of this invalid format.
Feb 07, 2010 12:14 AM|Matt-dot-net|LINK
Well, the real problem here is that Apple was not consulted when writing the RFC 822. They would have made date formats more friendly, intuitive, and proprietary.
You've got a tough problem.
If you are running IIS7, then you can do this easily with ASP.Net. Read this article to understand the limitation of modifying/adding request headers with ASP.Net in IIS 6.0 (5.1).
Feb 07, 2010 10:59 AM|jmarkee|LINK
Thanks got it working. Hopefully this gets corrected in the future so I dont have to do this on my side, but I wont complain its working :).