httputils¶
The openlp.core.utils
module provides the utility libraries for OpenLP.
-
openlp.core.common.httputils.
get_web_page
(url, header=None, update_openlp=False)[source]¶ Attempts to download the webpage at url and returns that page or None.
Parameters: - url – The URL to be downloaded.
- header – An optional HTTP header to pass in the request to the web server.
- update_openlp – Tells OpenLP to update itself if the page is successfully downloaded. Defaults to False.