GithubHelp home page GithubHelp logo

Specifying a User-Agent? about validator HOT 5 CLOSED

validator avatar validator commented on May 20, 2024
Specifying a User-Agent?

from validator.

Comments (5)

sideshowbarker avatar sideshowbarker commented on May 20, 2024

This is a good idea.

There's nothing yet exposed by the vnu code that’d enable it but as far as I can see it’d be feasible to add it as a new input param https://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters

If we add support in the code I think I'd still be reluctant myself to expose anything for it in the http://validator.w3.org/nu/ UI—just because it adds complexity to the UI for a feature that the vast majority of users don't need. Of course any user could still add it manually to the query part of the request URL, though they'd have to escape it correctly.

Still it'd be there regardless for any consumers of the checker’s HTTP/REST/Web-services API.

from validator.

jaimeiniesta avatar jaimeiniesta commented on May 20, 2024

Cool, I also think that it would be better to not clutter the UI with a new input as most users are not going to use it, but it would be great to be able to pass it as a query parameter.

from validator.

sideshowbarker avatar sideshowbarker commented on May 20, 2024

OK. BTW the docs at http://validator.w3.org/docs/users.html#option-user-agent imply there's an option fo this provided in the Web UI but I notice that http://validator.w3.org/ doesn't actually seem to expose such an option in its UI. Is that true? Or am I missing something? I realize it's supported in the backend—just wondering what mechanism if any there is for it, other than just adding it to the URL manually.

from validator.

jaimeiniesta avatar jaimeiniesta commented on May 20, 2024

I don't remember seeing an input for it on the UI. All that there is now is a hidden input used to remember its setting, for the Revalidate form.

from validator.

jaimeiniesta avatar jaimeiniesta commented on May 20, 2024

Thanks, I've added the option to specify a User-Agent string to nunchaku 0.2.0.

from validator.

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.