Re: Reading files over SSL using fopen or fsockopen
| From: | Ernest E Vogelsinger | Date: | Tue, 11 Mar 2003 17:14:48 +0000 |
| Subject: | Re: Reading files over SSL using fopen or fsockopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139145@lists.php.net to get a copy of this message | ||
At 14:35 11.03.2003, Dan Mullen said:
--------------------[snip]--------------------
>I am trying to read the contents of a file using fopen or fsockopen over a
>secure SSL connection. I have a script working fine over a non-SSL
>connection, but it just won't work over SSL. I have tried using fsockopen
>with the port set to 443, (I have checked this and the file I am trying to
>read is on a server where the secure port is set to 443).
>
>I am using PHP 4.3.0 on a Linux machine with OpenSSL installed. Has anyone
>got any ideas how I might be able to get this working? If it's not possible
>to read files over SSL using PHP, I will need to come up with another
>solution pretty quickly, so any help is much appreciated.
--------------------[snip]--------------------
You can't simply do a read on port 443, you need to make an SSL connection
- there's a lot more to it that just changing ports.
Have a look at cURL - this will get you the task done, without effort.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/