[go: nahoru, domu]

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

Add User-Agent Header to requests for Nominatim #79

Closed
bfuller86 opened this issue Jun 19, 2024 · 0 comments
Closed

Add User-Agent Header to requests for Nominatim #79

bfuller86 opened this issue Jun 19, 2024 · 0 comments

Comments

@bfuller86
Copy link
bfuller86 commented Jun 19, 2024

At this line of code

req = req.WithContext(ctx)

You need to add something along the lines of
req.Header.Set("User-Agent", "geo-golang/client")

In order to not get blocked by the website now.

At some point in time the Nominatim website started requiring User-Agent headers, and it returns an Access Denied page if you don't have one

@bfuller86 bfuller86 changed the title Add User-Agent Header to requests for Nominatum Add User-Agent Header to requests for Nominatim Jun 19, 2024
@bfuller86 bfuller86 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
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

1 participant