Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Adding a http header to a web service response

Adding a http header to a web service response

Scheduled Pinned Locked Moved Web Development
sysadminwindows-adminhardwaretutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neophyte30
    wrote on last edited by
    #1

    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...

    M 1 Reply Last reply
    0
    • N Neophyte30

      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...

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      Google[^] 5th result: http://www.scriptsdoctor.com/script.asp?id=699[^]

      Neonlight

      N 1 Reply Last reply
      0
      • M Marc Firth

        Google[^] 5th result: http://www.scriptsdoctor.com/script.asp?id=699[^]

        Neonlight

        N Offline
        N Offline
        Neophyte30
        wrote on last edited by
        #3

        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

        M 2 Replies Last reply
        0
        • N Neophyte30

          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

          M Offline
          M Offline
          Marc Firth
          wrote on last edited by
          #4

          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.

          Neonlight

          1 Reply Last reply
          0
          • N Neophyte30

            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

            M Offline
            M Offline
            Marc Firth
            wrote on last edited by
            #5

            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

            Neonlight

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups