<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP &#8211; Downloading a File from Secure website (https) using CURL</title>
	<atom:link href="http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/</link>
	<description>DiGiTSS Team&#039;s Programming experience with PHP, MySQL, Ajax, Javascript, jQuery, C# and Microsoft technologies</description>
	<lastBuildDate>Tue, 06 Sep 2011 19:30:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dharmavirsinh Jhala</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-13664</link>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
		<pubDate>Mon, 02 May 2011 18:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-13664</guid>
		<description>Hello Anil, 
There can be 2 reasons: 
1) PHP openssl extension is disabled: 
It doesn\&#039;t matter whether the server being called is running on IIS or Apache. This error arises because of PHP is not compiled with OpenSSL and/or php_openssl extension is not enabled. In this case just uncomment and it will work. 
2) another case is just the way you mentioned, due to some IIS bug, which you can use CURL to fix or lower down and ignore the warning if it works. 
 
Yes, I had IIS serving that file, which I was trying to download. </description>
		<content:encoded><![CDATA[<p>Hello Anil,<br />
There can be 2 reasons:<br />
1) PHP openssl extension is disabled:<br />
It doesn\&#8217;t matter whether the server being called is running on IIS or Apache. This error arises because of PHP is not compiled with OpenSSL and/or php_openssl extension is not enabled. In this case just uncomment and it will work.<br />
2) another case is just the way you mentioned, due to some IIS bug, which you can use CURL to fix or lower down and ignore the warning if it works. </p>
<p>Yes, I had IIS serving that file, which I was trying to download.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: file_get_contents fails with HTTPS URL - Anil Natha [dot] com</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-13661</link>
		<dc:creator>file_get_contents fails with HTTPS URL - Anil Natha [dot] com</dc:creator>
		<pubDate>Sun, 01 May 2011 23:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-13661</guid>
		<description>[...] now back to the script I mentioned earlier. The script, written by Dharmavirsinh Jhala, uses a call using CURL to get the contents of the file. After [...]</description>
		<content:encoded><![CDATA[<p>[...] now back to the script I mentioned earlier. The script, written by Dharmavirsinh Jhala, uses a call using CURL to get the contents of the file. After [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-13659</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Sun, 01 May 2011 19:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-13659</guid>
		<description>As documented on the PHP site at &lt;a href=&quot;http://php.net/manual/en/function.file-get-contents.php,&quot;&gt;http://php.net/manual/en/function.file-get-conten...&lt;/a&gt; calls using HTTPS where the site is running an MS IIS server, using file_get_contents will produce an &quot;SSL: fatal protocol error&quot;.  
 
Could you verify if the call you were making was to a MS IIS Server? </description>
		<content:encoded><![CDATA[<p>As documented on the PHP site at <a href="http://php.net/manual/en/function.file-get-contents.php,">http://php.net/manual/en/function.file-get-conten&#8230;</a> calls using HTTPS where the site is running an MS IIS server, using file_get_contents will produce an &quot;SSL: fatal protocol error&quot;.  </p>
<p>Could you verify if the call you were making was to a MS IIS Server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donagorr</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-11643</link>
		<dc:creator>donagorr</dc:creator>
		<pubDate>Sat, 26 Dec 2009 23:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-11643</guid>
		<description>I congratulate, your idea is useful </description>
		<content:encoded><![CDATA[<p>I congratulate, your idea is useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stu</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-9494</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Mon, 02 Mar 2009 07:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-9494</guid>
		<description>Nice Script. Seems to work right away. 
 
Thanks! </description>
		<content:encoded><![CDATA[<p>Nice Script. Seems to work right away. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-5599</link>
		<dc:creator>k</dc:creator>
		<pubDate>Thu, 20 Nov 2008 08:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-5599</guid>
		<description>i got an error. 
 
warning: file_get_contents(): ssl: connection reset by peer in /var/www/vhosts/test.php 
 
warning: file_get_contents(): ssl: fatal protocol error in /var/www/vhosts/test.php </description>
		<content:encoded><![CDATA[<p>i got an error.</p>
<p>warning: file_get_contents(): ssl: connection reset by peer in /var/www/vhosts/test.php</p>
<p>warning: file_get_contents(): ssl: fatal protocol error in /var/www/vhosts/test.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lo&#239;c Hoguin</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-4832</link>
		<dc:creator>Lo&#239;c Hoguin</dc:creator>
		<pubDate>Mon, 27 Oct 2008 16:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-4832</guid>
		<description>Hello, 
  
Was your PHP built with OpenSSL enabled? 
  
If you have a command line try 
    echo &quot; enabled 
  
Otherwise it won&#039;t work with HTTPS. If you recompile PHP with OpenSSL support 
file_get_contents(&#039;https&#039;) should work. 
  
Greetings, </description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Was your PHP built with OpenSSL enabled?</p>
<p>If you have a command line try</p>
<p>    echo &quot; enabled</p>
<p>Otherwise it won&#039;t work with HTTPS. If you recompile PHP with OpenSSL support</p>
<p>file_get_contents(&#039;https&#039;) should work.</p>
<p>Greetings,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmavirsinh Jhala</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-4755</link>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
		<pubDate>Sun, 26 Oct 2008 11:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-4755</guid>
		<description>Hi Loic, 
 
Actually it doesn&#039;t work that way.. 
 
If I write following line of code: 
 
echo file_get_contents(&quot;https://www.verisign.com/hp07/i/vlogo.gif&quot;); 
 
I am getting following error: 
 
Warning: file_get_contents &lt;a href=&quot;http://(https://www.verisign.com/hp07/i/vlogo.gif)&quot;&gt;(https://www.verisign.com/hp07/i/vlogo.gif)&lt;/a&gt; [function.file-get-contents]: failed to open stream: Invalid argument in ..htdocscopySecureFile.php on line 3 
 
If you are find it working then let me know if there is any setting to work out this error. </description>
		<content:encoded><![CDATA[<p>Hi Loic,</p>
<p>Actually it doesn&#039;t work that way..</p>
<p>If I write following line of code:</p>
<p>echo file_get_contents(&quot;https://www.verisign.com/hp07/i/vlogo.gif&quot;);</p>
<p>I am getting following error:</p>
<p>Warning: file_get_contents <a href="http://(https://www.verisign.com/hp07/i/vlogo.gif)">(https://www.verisign.com/hp07/i/vlogo.gif)</a> [function.file-get-contents]: failed to open stream: Invalid argument in ..htdocscopySecureFile.php on line 3</p>
<p>If you are find it working then let me know if there is any setting to work out this error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lo&#239;c Hoguin</title>
		<link>http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl/comment-page-1/#comment-4736</link>
		<dc:creator>Lo&#239;c Hoguin</dc:creator>
		<pubDate>Sun, 26 Oct 2008 04:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.digitss.com/?p=132#comment-4736</guid>
		<description>According to the documentation, you can use file_get_contents and friends with HTTPS (see php.net/wrappers). A simple &#039;echo file_get_contents(&quot;https://www.verisign.com/hp07/i/vlogo.gif&quot;);&#039; works perfectly fine here. 
 
What would be interesting to know is what exactly went wrong for you when you tried to use this function. </description>
		<content:encoded><![CDATA[<p>According to the documentation, you can use file_get_contents and friends with HTTPS (see php.net/wrappers). A simple &#039;echo file_get_contents(&quot;https://www.verisign.com/hp07/i/vlogo.gif&quot;);&#039; works perfectly fine here.</p>
<p>What would be interesting to know is what exactly went wrong for you when you tried to use this function.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.301 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-09-11 10:49:07 -->

