hebcal / dotcom

deprecated hebcal.com source code
https://github.com/hebcal/hebcal-web
21 stars 9 forks source link

Update docs to reflect HTTP to HTTPS redirects. #32

Closed sgladstone closed 5 years ago

sgladstone commented 5 years ago

The documentation at: https://www.hebcal.com/home/195/jewish-calendar-rest-api

should be updated to reflect the requirement of using "https://" when using the API. When I use "http" such as "http://www.hebcal.com/hebcal/?v=1&cfg=json&maj=on&min=on&mod=on&nx=on&year=now&month=x&ss=on&mf=on&c=on&geo=geoname&geonameid=3448439&m=50&s=on" the response is HTTP status 301 ( "Moved" ).

The only way to use the API now is to use the URL such as "https://www.hebcal.com/hebcal/?v=1&cfg=json&maj=on&min=on&mod=on&nx=on&year=now&month=x&ss=on&mf=on&c=on&geo=geoname&geonameid=3448439&m=50&s=on"

Just curious: when did the redirect behavior start happening?

mjradwin commented 5 years ago

Thanks for pointing this out. The change to require https always is from about 25 days ago. It corresponds to when Google Chrome decided to start marking regular http websites as insecure.

https://github.com/hebcal/dotcom/commit/649a10f87bef7c98ea1fed046f3e74449ce788c2

-- Sent from my mobile device

On Tue, Aug 21, 2018, 11:28 AM Sarah Poger Gladstone < notifications@github.com> wrote:

The documentation at: https://www.hebcal.com/home/195/jewish-calendar-rest-api

should be updated to reflect the requirement of using "https://" when using the API. When I use "http" such as " http://www.hebcal.com/hebcal/?v=1&cfg=json&maj=on&min=on&mod=on&nx=on&year=now&month=x&ss=on&mf=on&c=on&geo=geoname&geonameid=3448439&m=50&s=on" the response is "Moved".

The only way to use the API now is to use the URL such as " https://www.hebcal.com/hebcal/?v=1&cfg=json&maj=on&min=on&mod=on&nx=on&year=now&month=x&ss=on&mf=on&c=on&geo=geoname&geonameid=3448439&m=50&s=on "

Just curious: when did the redirect behavior start happening?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hebcal/dotcom/issues/32, or mute the thread https://github.com/notifications/unsubscribe-auth/ADmC1XZotF7nK04-W7Xo7S6Gu3ZM6lZ8ks5uS8SwgaJpZM4WFUyi .

mjradwin commented 5 years ago

We have updated the documentation to use only https, and have also restored the ability to query the JSON APIs with regular old http.