Ad Widget

Collapse

web.page.* problem with lighthttpd (1.4.2 stable)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • medic
    Member
    • Feb 2007
    • 58

    #1

    web.page.* problem with lighthttpd (1.4.2 stable)

    the problem is:
    lighthttpd expects \r\n when getting a request, whereas apache accepts also single \n

    Can it please be changed ?

    example: "GET / HTTP/1.1\n [...]\n" will not work, "GET / HTTP/1.1\r\n [...]\r\n" does

    thank you
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    It's client who formats requests to server.. What browser you are using?
    Zabbix | ex GUI developer

    Comment

    • medic
      Member
      • Feb 2007
      • 58

      #3
      browser ?

      uhm, i am using firefox,

      but the problem in zabbix is, that zabbix_agent 's http.c uses plain \n in its communication.
      this would need a change

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by medic
        the problem is:
        lighthttpd expects \r\n when getting a request, whereas apache accepts also single \n

        Can it please be changed ?
        I am pretty sure ZABBIX (actually, libcurl) sends \r\n to a monitored WEB server.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • medic
          Member
          • Feb 2007
          • 58

          #5
          oh ..
          so the actual version no longer uses src/libs/zbxsysinfo/common/http.c ?
          especially get_http_page()
          where the function used "zbx_snprintf(request, sizeof(request), "GET /%s HTTP/1.1\n"

          nevermind then, and big sorry..

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            I see what you mean. It will be fixed!
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              Fixed in pre 1.4.3 code.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              Working...