<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2217106</guid>
        <pubDate>Fri, 13 Mar 2009 09:13:37 +0000</pubDate>
        <title>Curl error 52</title>
        <link>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2217106</link>
        <description><![CDATA[Лёха: Вопрос решен обновлением php.]]></description>
        <author>Лёха</author>
        <category>PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216396</guid>
        <pubDate>Thu, 12 Mar 2009 15:29:48 +0000</pubDate>
        <title>Curl error 52</title>
        <link>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216396</link>
        <description><![CDATA[Лёха: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=266983&view=findpost&p=2216379'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Pr0&#091;)&#33;9Y &#064; <time class="tag-quote__quoted-time" datetime="2009-03-12T15:12:00+00:00">12.03.09, 15:12</time></span><div class='quote '>Бан?</div></div>Был бы бан, если бы в браузере у того человека не открывалось. А так все работает.<br>
Причем&#33;<br>
другие сайты через Curl у него открываются, а этот нет. У меня и на серванте открываются все]]></description>
        <author>Лёха</author>
        <category>PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216379</guid>
        <pubDate>Thu, 12 Mar 2009 15:12:00 +0000</pubDate>
        <title>Curl error 52</title>
        <link>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216379</link>
        <description><![CDATA[Pr0[)&#33;9Y: Бан?]]></description>
        <author>Pr0[)&#33;9Y</author>
        <category>PHP</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216090</guid>
        <pubDate>Thu, 12 Mar 2009 11:08:28 +0000</pubDate>
        <title>Curl error 52</title>
        <link>https://forum.sources.ru/index.php?showtopic=266983&amp;view=findpost&amp;p=2216090</link>
        <description><![CDATA[Лёха: Ситуация такая:<br>
Делал скрипт, который запрашивает страницу. У меня на ПК все работает отлично, на сервере тоже. У заказчика пишет 52ю ошибку:<br>
Хотя через браузер все отлично ему открывается.<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>CURLE_GOT_NOTHING (52) <br>
Nothing was returned from the server, and under the circumstances, getting nothing is considered an error.</div></div><br>
Ссылка на страницу: http://support.vaio.sony.ru/downloads/preinstalled/preinstalled.asp?site=voe_ru_RU_cons&c=0&s=-1&m=0<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">$content = get_url($start_url, &#39;&#39;, 1, &#39;&#39;, &#39;&#39;, &#39;cookie.txt&#39;);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">#CURL</div><div class="code_line">function get_url($url,$ref=&#39;&#39;,$header=&#39;&#39;,$post=&#39;&#39;,$cookie=&#39;&#39;,$cookiefile=&#39;&#39;,$proxy=&#39;&#39;,$timeout=&#39;&#39;,$popitok=2) {</div><div class="code_line">&nbsp;&nbsp; &nbsp;$ch=curl_init();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);</div><div class="code_line">&nbsp;&nbsp; &nbsp;//curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);</div><div class="code_line">&nbsp;&nbsp; &nbsp;curl_setopt($ch, CURLOPT_URL, $url);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($ref!=&#39;&#39;) curl_setopt($ch, CURLOPT_REFERER, $ref);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($header!=&#39;&#39;) curl_setopt($ch, CURLOPT_HEADER, 1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($post!=&#39;&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_POST, 1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_POSTFIELDS, $post);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($cookie!=&#39;&#39;) curl_setopt($ch, CURLOPT_COOKIE, $cookie);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($cookiefile!=&#39;&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($proxy!=&#39;&#39;) curl_setopt($ch, CURLOPT_PROXY, $proxy);</div><div class="code_line">&nbsp;&nbsp; &nbsp;curl_setopt($ch, CURLOPT_USERAGENT, &#39;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;if($timeout!=&#39;&#39;) curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$i=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; do {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i++;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &#39;&#60;!----&#62;&#39;; flush();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$content = curl_exec($ch);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; } while($i&#60;$popitok &amp;&amp; $content==&#39;&#39; || curl_errno($ch)!=0 &amp;&amp; $i&#60;$popitok);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if(curl_errno($ch)!=0 || $content==&#39;&#39;) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo &quot;&#60;br&#62;Error CURL: &quot;.curl_error($ch).&quot; | Error number: &quot;.curl_errno($ch).&quot;&#60;br&#62;&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;curl_close ($ch);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return false;</div><div class="code_line">&nbsp;&nbsp; &nbsp;} else {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;curl_close ($ch);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return $content;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
C чем может это свазяно? Почему сервер ничего не возвратил? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2009-03-12T11:22:55+00:00">12.03.09, 11:22</time></span></span><br>
В логах апача ничего особенного <br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>[Thu Mar 12 13:20:58 2009] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico, referer: http://localhost/parser/<br>
[Thu Mar 12 13:21:01 2009] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico, referer: http://localhost/parser/<br>
[Thu Mar 12 13:21:05 2009] [error] [client 127.0.0.1] Failed loading C:&#092;&#092;Program Files&#092;&#092;Zend&#092;&#092;Optimizer&#092;&#092;lib&#092;&#092;ZendExtensionManager.dll, referer: http://localhost/parser/</div></div>]]></description>
        <author>Лёха</author>
        <category>PHP</category>
      </item>
	
      </channel>
      </rss>
	