OpenSearch programs fail on HTTPS URLs
The programs handle HTTP specially (if their input URL doesn't have the protocol already) but don't do anything for HTTPS URLs. These need to be updated.
The errors (backslash added to keep good syntax highlighting):
$ opensearch-discover https://google.com
opensearch-discover: Error retriving http://https://google.com: 500 Can\'t connect to [https:]:80 (No address associated with hostname)
$ opensearch-genquery https://google.com foo
opensearch-genquery: Error fetching http://https://google.com
If there's no protocol, I think they should try in this order:
- the HTTPS version; and if it fails, then
- the HTTP version.
Only after (2) fails, should it give up.
Edited by Gabriel Lisaca