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

Host & Custom Header Support #691

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

ErikOwen
Copy link

@ErikOwen ErikOwen commented Mar 6, 2022

Fixes #564

This PR adds support for passing in custom HTTP headers for the crawler to use, and overriding the Host HTTP header. This can be useful when attempting to crawl an IP address while targeting a specific virtual host used in the web server on that IP address.

@hakluke
Copy link

hakluke commented Mar 7, 2022

I really would love to see this implemented

Copy link
Member

@asciimoo asciimoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@asciimoo asciimoo merged commit a611094 into gocolly:master Mar 8, 2022
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

Successfully merging this pull request may close these issues.

Unable to set the Host header
3 participants