Skip to content

http2https or https2http – depending on how you think about it... This is a simple PHP script to create a gateway/bridge to access HTTPS (SSL) web pages and files via HTTP requests.

Notifications You must be signed in to change notification settings

SottNick/http2https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

http2https or https2http – depending on how you think about it...

This is a simple PHP script to create a gateway to access HTTPS (SSL) web pages and files via HTTP requests.

This script may be needed, for example, for Arduino-based devices (ESP6266) when there is no option to support SSL certificates.

After placing the index.php file on the web server in the folder intended for the website, you will be able to open URLs of the format http://MY_SITE.com/?https://api.weather.yandex.ru/v2/... thereby retrieving the content of the URL shown after the question mark.

If you want to place the gateway script not on a separate domain, but on the domain of a running website, use the name http2https.php. In this case the URL will be http://MY_SITE.com/http2https.php?https://api.weather.yandex.ru/v2/...

Make sure that your web server does not automatically redirect http:// URLs to https://, or set an exception for the http2https.php file.

About

http2https or https2http – depending on how you think about it... This is a simple PHP script to create a gateway/bridge to access HTTPS (SSL) web pages and files via HTTP requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages