curl succeeds on an https request, wget does not
Solution 1:
This seems like an issue with choosing the SSL protocol. For some reason the server is picky about the protocol. Some clients happen to make the correct guess, others don't.
With wget
, try eg. --secure-protocol=tlsv1
or --secure-protocol=sslv3
. For more details, see GNU Wget man page.
With PHP, see this question on SO.
Solution 2:
On Red Hat Enterprise Linux 6.x and prior major versions, wget
does not support Server Name Indication, which is required to correctly access a growing number of TLS/SSL secured web sites, quite possibly including yours. On the other hand, curl
in RHEL 6 does support SNI.
Red Hat is aware of this issue and released a fix in RHEL 6.6. The issue is also fixed in RHEL 7.0.