Announcement

Collapse
No announcement yet.

ASP request.servervariables() not supported?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ASP request.servervariables() not supported?

    I'm trying to troubleshoot an ASP problem under the HS webserver and found that request.servervariables() does not return anything. It also does not error out.

    I can access all of the server vars under IIS but not under HS.

    Can anyone shed any light on how to access these under the HS webserver?
    Best regards,
    -Mark-

    If you're not out on the edge, you're taking up too much room!
    Interested in 3D maps? Check out my company site: Solid Terrain Modeling

    #2
    These work in aspx pages but the not older asp pages. They never have as as far as I can remember.
    -Rupp
    sigpic

    Comment


      #3
      Originally posted by Rupp View Post
      These work in aspx pages but the not older asp pages. They never have as as far as I can remember.
      There are _some_ server variables supported, even back in HS 1.6/1.7 and current ASP pages as well.

      Do a for each loop to go through all the supported server variables, display what they return, and see if what you want is supported in a useful way.

      I've been using ASP server variables since I first starting using HS so many years ago. I haven't used it much with .aspx, so it makes me happy to see the aspx supports them.
      huggy_d1

      Automating made easy

      Comment


        #4
        Unzip the attached .asp and .aspx pages into your html folder. Invoke both from a browser and you'll see which are supported.

        Hope this helps...
        Attached Files
        HS4Pro Running on a Raspberry Pi4
        79 Z-Wave Nodes, 131 Events, 383 Devices
        Z-Wave, UPB, WiFi
        Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
        HSTouch Clients: 3 Android, 1 Joggler

        Comment


          #5
          Thanks for the comments everyone. I guess I should have been more specific by including which server vars I need...

          I'm needing to see the raw request made to my page along with the included data and need either "ALL_RAW" or "ALL_HTTP."

          Unfortunately for me, it appears that the HS ASP server only provides the following three:
          AUTH_USER
          PATH_INFO
          REMOTE_ADDR

          and does not return any of these:
          ALL_RAW
          HTTP_USER_AGENT
          ALL_HTTP
          APPL_MD_PATH
          APPL_PHYSICAL_PATH
          AUTH_PASSWORD
          AUTH_TYPE
          CERT_COOKIE
          CERT_FLAGS
          CERT_ISSUER
          CERT_KEYSIZE
          CERT_SECRETKEYSIZE
          CERT_SERIALNUMBER
          CERT_SERVER_ISSUER
          CERT_SERVER_SUBJECT
          CERT_SUBJECT
          CONTENT_LENGTH
          CONTENT_TYPE
          GATEWAY_INTERFACE
          HTTPS
          HTTPS_KEYSIZE
          HTTPS_SECRETKEYSIZE
          HTTPS_SERVER_ISSUER
          HTTPS_SERVER_SUBJECT
          INSTANCE_ID
          INSTANCE_META_PATH
          LOCAL_ADDR
          LOGON_USER
          PATH_TRANSLATED
          QUERY_STRING
          REMOTE_HOST
          REMOTE_USER
          REQUEST_METHOD
          SCRIPT_NAME
          SERVER_NAME
          SERVER_PORT
          SERVER_PORT_SECURE
          SERVER_PROTOCOL
          SERVER_SOFTWARE
          URL
          HTTP_CONNECTION
          HTTP_ACCEPT
          HTTP_ACCEPT_ENCODING
          HTTP_ACCEPT_LANGUAGE
          HTTP_HOST
          HTTP_REFERER

          Anyone have any ideas on how to have a look at the raw request data from a post without using the server vars?
          Best regards,
          -Mark-

          If you're not out on the edge, you're taking up too much room!
          Interested in 3D maps? Check out my company site: Solid Terrain Modeling

          Comment


            #6
            the .aspx code I posted will return ALL_RAW and ALL_HTTP - is there a reason you need pure .ASP instead of .ASPX?
            HS4Pro Running on a Raspberry Pi4
            79 Z-Wave Nodes, 131 Events, 383 Devices
            Z-Wave, UPB, WiFi
            Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
            HSTouch Clients: 3 Android, 1 Joggler

            Comment


              #7
              Originally posted by rmasonjr View Post
              the .aspx code I posted will return ALL_RAW and ALL_HTTP - is there a reason you need pure .ASP instead of .ASPX?
              The 1K+ lines of code are ASP and I'm tired of waiting for ASPX pages to compile every time before being displayed. (Yes, I know they can be precompiled.)
              Thanks for the pointers, I do appreciate it!
              Best regards,
              -Mark-

              If you're not out on the edge, you're taking up too much room!
              Interested in 3D maps? Check out my company site: Solid Terrain Modeling

              Comment


                #8
                Have you thought about using IIS to serve the pages?
                -Rupp
                sigpic

                Comment


                  #9
                  Originally posted by mfisher View Post
                  The 1K+ lines of code are ASP and I'm tired of waiting for ASPX pages to compile every time before being displayed. (Yes, I know they can be precompiled.)
                  Thanks for the pointers, I do appreciate it!
                  ah - good point - there is a little setup involved. I want to say that user Jon00 has a utility that keeps an ASP and/or ASPX page compiled for faster load times. You might search around and see if you can find it.

                  Thanks!
                  HS4Pro Running on a Raspberry Pi4
                  79 Z-Wave Nodes, 131 Events, 383 Devices
                  Z-Wave, UPB, WiFi
                  Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
                  HSTouch Clients: 3 Android, 1 Joggler

                  Comment


                    #10
                    Rupp: thanks, but all I wanted to do was troubleshoot an ASP page that had been working but started having a little issue. I had hoped that the HS server would supply at least some of the basic server vars, but it does not.

                    rmasonjr: yep, I looked into Jon00's ASPX keep-alive script and in the end decided that I didn't need another band-aid on HS and have kind of given up on ASPX under HS for now.

                    All: issue resolved the hard way - lots & lots of debug messages sprinkled throughout the code...

                    Thanks for your input!
                    Best regards,
                    -Mark-

                    If you're not out on the edge, you're taking up too much room!
                    Interested in 3D maps? Check out my company site: Solid Terrain Modeling

                    Comment

                    Working...
                    X