Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Add exact headers of a website request to API call #11

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

roman-mueller
Copy link
Contributor

Currently the API calls to MVG don't work as they banned the User-Agent.
This PR adds the exact same headers to the request as a current Chrome on macOS does to their API when using the website.
Closes #10

@leftshift
Copy link
Owner

Thanks for your help! @paul0x1C and I played around a bit and just any user agent and an accept of application/json should work.

For now, I'd like to use a user agent actually identify this project, seems like the fair thing to do. If they decide to actually block this user agent specifically, we might just do what you did and use the headers a browser would send.

@leftshift leftshift merged commit 1ff29e9 into leftshift:master Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package cannot access server
2 participants