Adding a http header to a web service response
-
As part of a project that communicates with remote hardware via a web service, I have been asked to ensure that all responses include a Date header. Can anyone tell me where I should be looking to implement this? Possible candidates I have (unsuccessfully) considered/researched so far include: settings in IIS 6.0 on the web server settings in the web config of the web service Am I even looking in the right place? Once I have found how to add the header I may also need to be able to format it...
-
As part of a project that communicates with remote hardware via a web service, I have been asked to ensure that all responses include a Date header. Can anyone tell me where I should be looking to implement this? Possible candidates I have (unsuccessfully) considered/researched so far include: settings in IIS 6.0 on the web server settings in the web config of the web service Am I even looking in the right place? Once I have found how to add the header I may also need to be able to format it...
Google[^] 5th result: http://www.scriptsdoctor.com/script.asp?id=699[^]
-
Google[^] 5th result: http://www.scriptsdoctor.com/script.asp?id=699[^]
Thanks for the reply Marc - although it turns what I was actually being asked was to ensure the Date: response (which is included in all responses currently) stays in the same format. As I believe this format is defined in the HTTP specification, I'm assuming that the format would not change even if we were to upgrade to IIS 7.0 Not sure how to interpret your suggestion - as I am coming at this from self-taught asp.net/c# background - I plan to leave well enough alone, until such time as eveything stops working... Is the Date: header always included, and always in the same format? Thanks again, Alan
-
Thanks for the reply Marc - although it turns what I was actually being asked was to ensure the Date: response (which is included in all responses currently) stays in the same format. As I believe this format is defined in the HTTP specification, I'm assuming that the format would not change even if we were to upgrade to IIS 7.0 Not sure how to interpret your suggestion - as I am coming at this from self-taught asp.net/c# background - I plan to leave well enough alone, until such time as eveything stops working... Is the Date: header always included, and always in the same format? Thanks again, Alan
I don't think so - but what you can do is make an asp file with the code from that 5th result and prepend every file in the site with that. Go start > run > inetmgr and look at the properties of your website. You can prepend the file in there... I think.
-
Thanks for the reply Marc - although it turns what I was actually being asked was to ensure the Date: response (which is included in all responses currently) stays in the same format. As I believe this format is defined in the HTTP specification, I'm assuming that the format would not change even if we were to upgrade to IIS 7.0 Not sure how to interpret your suggestion - as I am coming at this from self-taught asp.net/c# background - I plan to leave well enough alone, until such time as eveything stops working... Is the Date: header always included, and always in the same format? Thanks again, Alan
Oh and as for changes between 6 & 7 - i doubt it. best thing would be to search on technet etc for "whats new IIS" or something