Giter VIP home page Giter VIP logo

Comments (4)

arp242 avatar arp242 commented on September 23, 2024

The problem seems to be that the field is "", rather than "-" to indicate an empty value. It scans for .+? (that is, at least one character).

As far as I know, a - should always be used to indicate missing data, but none of this is a "real" standard.

Was this generated by some common(-ish) software?

from goatcounter.

ValdikSS avatar ValdikSS commented on September 23, 2024

Was this generated by some common(-ish) software?

That's a real access log file of nginx, from a real website. Such records are added when user-agent header is present but empty (user-agent: ).

from goatcounter.

arp242 avatar arp242 commented on September 23, 2024

I could reproduce it like this:

$ nc localhost 8090
GET / HTTP/1.1
User-Agent:

HTTP/1.1 400 Bad Request
...

Gave me:

127.0.0.1 - - [17/May/2023:22:04:40 +0200] "GET / HTTP/1.1" 400 157 "-" ""

The trick is to have User-Agent header with no value, rather than User-Agent being omitted (e.g. curl -H 'User-Agent: ' will simply not send any header).

from goatcounter.

arp242 avatar arp242 commented on September 23, 2024

Ah, it seems you edited your message. Well, we came to the same conclusion 😅

Mostly just wanted to verify it's not an issue with a custom script or the like. I'll get it fixed.

from goatcounter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.