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

Fix omdbapi protocol #684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix omdbapi protocol #684

wants to merge 1 commit into from

Conversation

oschrenk
Copy link

@oschrenk oschrenk commented May 17, 2024

As per documentation on https://www.omdbapi.com the protocol for the API is HTTP not HTTPS.

Even with a correct API key requests against https://... are returning 401.

curl -s -o /dev/null -w "%{http_code}" "https://www.omdbapi.com/?i=tt3896198&apikey=cafecafe"
401

where as

curl -s -o /dev/null -w "%{http_code}" "http://www.omdbapi.com/?i=tt3896198&apikey=cafecafe"
200

one could argue that https should work as well, so I emailed the owner of OMDB as well.

As per documentation on https://www.omdbapi.com the protocol for the API is HTTP not HTTPS.

Even with a correct API key requests against https are returning 401. 

```
curl -s -o /dev/null -w "%{http_code}" "https://www.omdbapi.com/?i=tt3896198&apikey=cafecafe"
401
```

where as 

```
curl -s -o /dev/null -w "%{http_code}" "http://www.omdbapi.com/?i=tt3896198&apikey=cafecafe"
200
```
Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview May 17, 2024 7:34am

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.

None yet

1 participant