Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Accept header instead of User-Agent sniffing #2

Open
motowilliams opened this issue Feb 2, 2014 · 1 comment
Open

Use Accept header instead of User-Agent sniffing #2

motowilliams opened this issue Feb 2, 2014 · 1 comment

Comments

@motowilliams
Copy link

Even though curl and wget are the gold standard for this type of utility it would be super useful if we could also use an Accept header to get alternate content versions of these code and descriptions. This would make a little more of an API that could be used with other clients not listed in your command_line_agents block https://github.com/tternes/httpcode/blob/master/web/index.php#L39.

This could open the door for a json and xml responses and then maybe could enable a html response (think embedding a html fragment into another web application)

@tternes
Copy link
Owner

tternes commented Feb 2, 2014

Great idea.

IIRC, @dahlbyk had also mentioned this on Twitter at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants