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

Support HTTP Status Detection GET Override. Use For Instagram #599

Merged
merged 1 commit into from
May 9, 2020

Conversation

hoadlck
Copy link
Contributor

@hoadlck hoadlck commented May 9, 2020

This is a restructuring of #593.

Add override to HTTP Status Detection so HEAD request is not used. Configure Instagram to use this option.

In most cases when we are detecting by status code, it is not necessary to get the entire body: we can detect fine with just the HEAD response. However, Richard Getz discovered that some sites (e.g. Instagram) will not respond properly if Sherlock only requests the HEAD.

Add a "request_head_only" attribute to the data.json so HTTP Status Detection can be configured either way. It is simpler to support this change in this fashion, as it does not require changes to the tests.

With Richard Getz richardgetziii@gmail.com

…nfigure Instagram to use this option.

In most cases when we are detecting by status code, it is not necessary to get the entire body:  we can detect fine with just the HEAD response.  However, Richard Getz discovered that some sites (e.g. Instagram) will not respond properly if Sherlock only requests the HEAD.

Add a "request_head_only" attribute to the data.json so HTTP Status Detection can be configured either way.  It is simpler to support this change in this fashion, as it does not require changes to the tests.

With Richard Getz <richardgetziii@gmail.com>
@hoadlck hoadlck added bug Something isn't working enhancement New feature or request labels May 9, 2020
@hoadlck hoadlck merged commit e5bc181 into master May 9, 2020
This was referenced May 9, 2020
@sdushantha sdushantha deleted the status_detect_get_override branch August 5, 2020 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant